

When you’re comparing stocks or SaaS multiples, the price/earnings ratio is the one number you keep reaching for. It condenses market sentiment, growth expectations, and profitability into a single, comparable metric. With a P/E ratio calculator wired into your workflow, you can quickly spot overvalued darlings, hidden bargains, or portfolio drift—without wading through full financial statements each time. For founders, marketers, and agency owners who also invest or report to investors, a clean, always-current P/E grid is like a dashboard for your conviction.
This is exactly where delegation shines. An AI computer agent can open your favorite data sites, copy the latest prices and EPS figures, and update your Google Sheets model on a schedule—no more hunting tickers at midnight. You get fresh P/E ratios on demand, while the agent handles the tabs, copy‑paste, and formula checks in the background.
Let’s start with how most people learn it: by hand. The core formula is simple:
P/E ratio = Share price ÷ Earnings per share (EPS)
Here are a few traditional methods, with clear steps:
Method 1: Plain calculator and notepad
Pros: Teaches intuition. Zero setup.
Cons: Painful to scale beyond a few tickers. No history, no charts.
Method 2: Manual Google Sheets table
Ticker | Price | EPS | P/E.=B2/C2 and drag down to compute P/E for all rows.Official docs on creating and editing sheets:
Pros: Easy to understand; flexible formatting and charts.
Cons: You still have to fetch prices and EPS by hand.
Method 3: Copying from a web P/E calculator
Pros: Fast for one-off checks.
Cons: Still manual copy/paste; hard to maintain a portfolio view.
Method 4: Basic desktop spreadsheet (Excel)
Price, EPS, P/E column pattern.Pros: Works offline; good if your company standardizes on Excel.
Cons: Collaboration is harder; no native web automations.
These methods are fine when you’re curious about one or two tickers. The moment you’re tracking a portfolio, a content creator index, or public comps for a fundraising deck, the friction becomes obvious.
You don’t have to jump straight to full AI agents. A lot can be done with lightweight automations.
Method 5: GOOGLEFINANCE in Google Sheets
AAPL, GOOGL, MSFT).=GOOGLEFINANCE(A2, "price")=GOOGLEFINANCE(A2, "eps")=IFERROR(B2/C2, "N/A")Official GOOGLEFINANCE documentation:
Pros: No code, fully inside Sheets, auto‑refreshing data.
Cons: Ticker coverage and EPS fields can be patchy for some markets.
Method 6: Importing data from web tables
If a site posts updated P/E ratios in an HTML table, you can pull it directly.
=IMPORTHTML("https://example.com/page", "table", 1)INDEX, VLOOKUP) to map imported data into your own model.Docs for IMPORTHTML and related functions:
Pros: Great when someone else maintains the data; you just subscribe to it.
Cons: Breaks if the site layout changes; limited control.
Method 7: Zapier/Make integrations into Sheets
Use a no‑code platform (Zapier, Make, etc.) plus an API‑friendly data provider.
Ticker, Price, EPS, P/E, Last Updated.P/E as a formula (=B2/C2) so it recalculates automatically.Docs for Google Sheets integration:
Pros: Reliable scheduled updates; no manual browsing.
Cons: You must manage API keys and rate limits; setup is more involved.
No‑code automations are powerful, but they assume APIs are perfect and pages never change. In reality, marketers, agencies, and founders work across messy websites, custom dashboards, and exports. That’s where a Simular AI agent becomes your digital analyst.
Simular Pro is designed to automate nearly anything a human can do on a desktop: open the browser, log in, click through dashboards, copy data, and update Google Sheets. Learn more:
Method 8: Agent as your P/E data collector
Imagine you maintain a Google Sheet of 40 public comps to benchmark your SaaS brand or portfolio companies.
Workflow:
Pros:
Cons:
Method 9: Agent for multi‑source P/E sanity checks
Maybe your investors want conservative numbers. You can have the agent cross‑verify P/E from two different sites.
Workflow:
Pros:
Cons:
Method 10: Agent‑driven P/E alerts for your team
Take it one step further—let the agent not only update the sheet but also notify sales or leadership when valuations move.
Workflow:
Pros:
Cons:
A Simular AI agent essentially becomes the operations person you wish you had: patient, precise, and happy to click through 100 pages to keep your P/E ratios honest and up to date—so you can focus on narratives, pitch decks, and strategy instead of data chores.
Start with a simple structure. In Google Sheets, create headers in row 1: Ticker, Price, EPS, P/E. In column A, list your stock symbols. In column B, type the latest share prices you find on a finance site. In column C, type the corresponding EPS values. Then, in cell D2, enter the formula =IFERROR(B2/C2, "N/A") and drag it down for all rows. This calculates P/E as price divided by EPS and shows “N/A” if data is missing.
To keep things organized, freeze the header row (View → Freeze → 1 row) and use data validation to ensure tickers are entered consistently (Data → Data validation). As you refresh prices and EPS, the P/E column updates automatically. Over time, you can add dates on a separate sheet or tabs for different portfolios, but this basic setup is enough to get you started.
To automate P/E in Google Sheets, use the built‑in GOOGLEFINANCE function. In column A, list your tickers (e.g., AAPL, MSFT). In B2, enter =GOOGLEFINANCE(A2, "price") to fetch the live price. In C2, try =GOOGLEFINANCE(A2, "eps") to pull earnings per share if Google provides it for that ticker. Then in D2, calculate P/E with =IFERROR(B2/C2, "N/A") and drag these formulas down.
Your sheet will now refresh prices and EPS automatically. To understand syntax and available attributes, check Google’s official docs at https://support.google.com/docs/answer/3093281. Be aware that not all markets or instruments expose EPS via GOOGLEFINANCE; in those cases you may need to type EPS manually or pull it from another source. Still, for covered tickers, this approach gives you a live P/E dashboard with almost no maintenance.
Create a dedicated “Portfolio” sheet. In column A, list all your tickers. In column B and C, either use GOOGLEFINANCE or paste in price and EPS from a trusted source. In column D, compute P/E with =IFERROR(B2/C2, "N/A"). Next, add columns for Sector, Market Cap, or Region so you can slice comparisons.
Use conditional formatting (Format → Conditional formatting) to color very high P/E values (e.g., above 40) in red and very low ones in green. Then insert a filter view (Data → Filter views → Create new filter view) so you can quickly sort by P/E within sectors. You can also create a bar chart: select tickers and P/E column, then Insert → Chart and choose a column chart. This gives you an at‑a‑glance perspective on which holdings are rich or cheap relative to each other, instead of scanning rows manually.
You can cut manual work in two stages. First, exploit Google Sheets automation: use GOOGLEFINANCE where possible, IMPORTHTML to pull tables from stable finance sites, and array formulas so you don’t retype logic for every row. Build your sheet so that you only need to change tickers or dates—everything else recalculates.Second, layer on automation tools or an AI agent. For example, with a Simular AI agent you can delegate the repetitive steps: opening your finance dashboard, copying updated EPS values, and pasting them to the right rows. The agent can run on a schedule, update the sheet, and even highlight anomalies for review. This hybrid approach—formulas plus an AI computer agent to handle the messy cross‑app actions—turns P/E maintenance from an evening chore into an invisible background process.
Treat your AI agent like a junior analyst: powerful, but in need of guardrails. Start with a small set of tickers and run the agent while you watch. In Google Sheets, add extra columns for “Source Price” and “Source EPS” so you can see exactly what the agent captured from each website. Use an IF formula like `=IF(ABS(D2-D3)/D3>0.05, "Check", "OK")` to flag any P/E change greater than 5% versus the prior run.Review these flags after each test run. If you spot systematic issues—such as the agent reading the wrong table cell after a layout change—update its instructions in Simular so it targets the correct selectors or text labels. Because Simular Pro’s execution is transparent and step‑by‑step, you can inspect its clicks and keystrokes, correct them, and rerun the workflow until P/E results consistently match your manual spot checks.