To populate or fill a cell based on another cell value in Excel, use a formula like =IF(A2>50,"Pass","Fail"). This reads one cell and writes a conditional result into another automatically. For multiple outcomes, use IFS, SWITCH, or VLOOKUP to pull values from a reference table without manual typing or copy-paste errors.
Key Takeaways
- The
IFfunction is the fastest way to fill a cell based on a single condition in another cell. - Use
IFSorSWITCHwhen you have three or more categories to assign, keeping your formula readable. VLOOKUP(or its modern replacementXLOOKUP) pulls values from a reference table, which is cleaner for large datasets.- Flash Fill automates pattern-based filling without any formula at all, ideal for formatting names, phone numbers or codes.
- You can simulate a disabled cell by combining Data Validation with Protect Sheet, stopping unwanted edits based on a condition.
How to Populate a Cell Based on Another Cell Value in Excel (Quick Steps)
- Click the cell where you want the auto-populated result to appear.
- Type your formula, for example
=IF(A2>=18,"Eligible","Not Eligible"), pointing the condition at the source cell. - Press Enter to confirm.
- Select the result cell and press Ctrl + D after selecting the full column range to fill the formula down.
- Update the source column — every result cell updates automatically.
Filling Cells from Conditions
The most direct way to excel populate cell based on another cell value is the IF function. Its syntax is =IF(logical_test, value_if_true, value_if_false). You point the logical test at any cell, and Excel writes whichever result matches into the current cell automatically — no manual entry needed.
Say you manage attendance for a training batch at a company. Column A holds the number of classes attended; column B should say “Eligible” or “Not Eligible” for the certification exam. The formula in B2 is simply =IF(A2>=18,"Eligible","Not Eligible"). Copy it down column B and every row updates itself. This is the core of auto-populating cells in Excel based on another cell’s value.
Using IFS for Multiple Conditions
When you have more than two outcomes, nesting IF inside IF gets messy fast. IFS is cleaner. The syntax is =IFS(condition1, result1, condition2, result2, ...) and Excel stops at the first condition that is true.
A sales manager in Pune might use this to grade territory performance:
=IFS(B2>=100000,"Gold", B2>=60000,"Silver", B2>=30000,"Bronze", TRUE,"Unranked")
The TRUE at the end acts as a catch-all, so no cell is left blank. That is a real on-the-job habit worth building early, especially in BFSI and e-commerce reporting roles where incomplete categorisation causes downstream errors.
Using SWITCH as an Alternative
SWITCH works best when you are matching exact values, not ranges. Syntax: =SWITCH(expression, value1, result1, value2, result2, ..., default). If column A holds department codes like “HR”, “IT”, “FIN”, you can write =SWITCH(A2,"HR","Human Resources","IT","Information Technology","FIN","Finance","Unknown"). It reads like a lookup table written inside a formula and is a clean way to fill a cell automatically based on another cell when values are fixed codes.
Using VLOOKUP to Fill from a Reference Table
VLOOKUP is the classic choice when your mapping lives in a separate table rather than inside the formula itself. Syntax: =VLOOKUP(lookup_value, table_array, col_index_num, 0). The 0 at the end forces an exact match, which is almost always what you want when you need to populate a cell based on another cell value in Excel.
Suppose you have a product code in A2 and a price list on Sheet2 (columns A and B). The formula =VLOOKUP(A2,Sheet2!$A:$B,2,0) pulls the matching price automatically. One practical mistake beginners make: forgetting to lock the table range with $ signs before copying the formula down. Without that, the table reference drifts and returns wrong values or errors.
According to Microsoft’s official Excel documentation, VLOOKUP remains one of the most widely used lookup functions, though XLOOKUP (available in Microsoft 365) handles left-side lookups and returns arrays more flexibly.
Categorising Data with Formulas
Knowing how to categorise data in Excel using a formula is a core skill for anyone working in MIS, reporting or analytics in India’s IT services, BFSI, or e-commerce sectors. The goal is to turn raw numbers or codes into meaningful labels that a business can act on — and to do it with dynamic cell references so the output updates whenever the source data changes.
According to the NASSCOM Future of Work report (2023), data proficiency is among the top five skills Indian employers look for in new hires, with Excel and spreadsheet skills specifically cited for entry-level analyst roles. If you are thinking about a career in data, our guide on data analyst kaise bane walks through the full learning path for aspiring analysts in India.
Categorising with Nested IF
For a simple three-tier grade system, nested IF still works. =IF(C2>=75,"Distinction",IF(C2>=50,"Pass","Fail")) assigns a label based on a student’s score in C2. Excel evaluates left to right and stops at the first true condition, so the order of your conditions matters. Put the highest threshold first.
Categorising with IFS and Named Ranges
For cleaner, auditable spreadsheets, define your thresholds as named ranges. Go to Formulas tab, Name Manager, and create names like DistinctionCutoff for the value 75. Your formula becomes =IFS(C2>=DistinctionCutoff,"Distinction",C2>=PassCutoff,"Pass",TRUE,"Fail"). When the cutoffs change (and they always do), you update one named range, not fifty formulas. This is the professional standard for conditional cell fill in Excel-based reporting tools.
Formula vs. Manual Categorisation: A Quick Comparison
| Method | Time for 500 rows | Error risk | Updates automatically? |
|---|---|---|---|
| Manual typing | 30-60 minutes | High | No |
| IF / IFS formula | Under 2 minutes | Low | Yes |
| VLOOKUP from table | Under 5 minutes | Very low | Yes (if table updates) |
| Flash Fill | Seconds | Medium (pattern-based) | No (static output) |
This table makes one thing clear: formulas save time and reduce errors at scale. That is exactly the kind of efficiency that makes a data analyst valuable in any Indian IT or analytics team. Check out some real-world data analytics projects to see how these skills apply in practice.
Fill Down and Flash Fill Options
Not every fill task needs a formula. Excel gives you two quick, non-formula tools that are genuinely useful: Fill Down and Flash Fill.
Fill Down
Fill Down copies the formula or value from the top cell into all selected cells below it. Select the range you want to fill, including the source cell at the top, then press Ctrl + D. You can also go to Home tab, Editing group, Fill, Down.
The most common use case is extending a formula you have written in row 2 all the way to row 5000. Select B2:B5000, press Ctrl + D, done. No dragging the fill handle across thousands of rows.
What is Flash Fill in Excel?
Flash Fill is an Excel feature (introduced in Excel 2013) that detects a pattern in your typing and fills the rest of the column automatically. It does not use a formula. You type the first one or two examples manually, and Excel figures out the rule.
Imagine column A has full names like “Priya Sharma” and you want first names only in column B. Type “Priya” in B1, then start typing “Ravi” in B2 (from “Ravi Mehta” in A2). Excel shows a grey preview of the full column filled with first names. Press Enter to accept it, or use Ctrl + E to trigger Flash Fill manually.
Flash Fill works brilliantly for reformatting phone numbers, splitting addresses, or extracting codes from mixed text. Where it can go wrong is with inconsistent source data. If some names have a middle initial and others do not, Flash Fill may misread the pattern. Always scroll through the output before treating it as final.
According to Microsoft Support, Flash Fill is available in Excel 2013 and later, as well as Microsoft 365. It is one of the fastest ways to fill cells in Excel based on value patterns without writing a single formula.
When to Use Each Tool
- Use IF / IFS / SWITCH when the fill logic is conditional and needs to stay live as data changes — this is the standard way to excel populate cell based on another cell value dynamically.
- Use VLOOKUP / XLOOKUP when you are pulling from a structured reference table.
- Use Fill Down (Ctrl + D) when you want to copy a formula quickly to a large range.
- Use Flash Fill (Ctrl + E) when you are reformatting or extracting text by example, and the output is static.
If you are building more complex data pipelines and want to move beyond Excel, understanding Pandas and NumPy explained is the natural next step for programmatic data manipulation in Python.
Disabling Cells Based on Conditions
Excel does not have a native “disable this cell if that cell equals X” toggle. But you can achieve the same result by combining Data Validation with Protect Sheet. It takes a few steps, but it works reliably for building controlled data-entry forms.
How to Restrict a Cell Using Data Validation
Select the cell you want to restrict. Go to Data tab, Data Validation, Settings. In the Allow dropdown, choose Custom. In the Formula box, enter a formula that returns TRUE only when entry should be allowed. For example, =A2="Yes" means the cell only accepts input when A2 says “Yes”. If A2 says anything else, Excel blocks the entry and can show a custom error message.
Set your error message under the Error Alert tab: choose “Stop” as the style, write something like “This field is locked until the previous step is completed.” That is a much better user experience than a cryptic Excel error.
Locking Cells with Protect Sheet
Data Validation stops wrong input but does not prevent someone from deleting the validation rule itself. For real protection, you need Protect Sheet.
- Select all cells and go to Format Cells, Protection tab. Uncheck “Locked” for all cells.
- Select only the cells you want to protect. Go back to Format Cells, Protection tab. Check “Locked”.
- Go to Review tab and click Protect Sheet. Set a password if needed.
Now those cells are locked regardless of what anyone types. The combination of Data Validation (for conditional logic) and Protect Sheet (for hard enforcement) is what professionals use when building Excel-based forms for teams across Indian IT services and BFSI organisations.
One thing to know on the job: Protect Sheet is not high-security encryption. A determined user can remove it. It is a friction layer, not a firewall. For genuinely sensitive data, use proper access controls at the system level.
Excel skills like these connect directly to analytics work. If you are comparing career paths, our breakdown of data analyst vs data scientist roles explains where spreadsheet fluency fits in each track. And if you want to see what interviewers actually test, our list of data analyst interview questions covers the Excel scenarios that come up most often.
Data skills are also increasingly relevant to cybersecurity work. SOC analysts filter event logs, build alert dashboards and spot anomalies in structured data every single day. The same conditional logic you use to populate cells based on another cell value in Excel translates directly to SIEM queries and log analysis. If that path interests you, take a look at the EC-Council Certified SOC Analyst course at 3.0 University. Excel proficiency is listed among the highest-paying tech skills for 2026, particularly when combined with security or analytics certifications.
According to the LinkedIn Jobs on the Rise report (India, 2024), data analysts ranked among the top ten fastest-growing roles, with demand up 35% year-on-year. The NASSCOM State of the Technology Sector report (2024) estimated that India will need over 11 million data-skilled professionals by 2026. Knowing how to automate categorisation and conditional fills in Excel is a measurable, job-ready part of that skill set.
Frequently Asked Questions
How do I fill a cell based on another cell’s value?
Use the IF function: =IF(A2="Yes","Approved","Pending"). This reads cell A2 and writes a result in the current cell based on what A2 contains. For multiple conditions, use IFS or SWITCH instead of nesting multiple IF statements, which quickly becomes hard to read and maintain.
What is the formula to populate a cell based on another cell in Excel?
The most common formula to excel populate cell based on another cell value is =IF(A2="Yes","Approved","Pending"). For range-based categories, use =IFS(A2>=75,"Distinction",A2>=50,"Pass",TRUE,"Fail"). For exact-value matching, use =SWITCH(A2,"HR","Human Resources","IT","Information Technology","Unknown"). For table-based lookups, use =VLOOKUP(A2,Sheet2!$A:$B,2,0).
How do I categorise data using a formula in Excel?
The cleanest approach is IFS for range-based categories or SWITCH for exact-value categories. Write your formula in the first row of the output column, then copy it down the entire dataset. Using named ranges for your thresholds makes the formula easier to audit and update when criteria change.
How do I fill a column based on a condition in Excel?
Write your conditional formula (such as =IF(B2>1000,"High","Low")) in the first cell of the output column. Then select that cell and the empty cells below it, and press Ctrl + D to fill the formula down. The formula adjusts its row references automatically for each row.
Can I disable a cell in Excel based on a condition?
Excel does not have a built-in conditional disable, but you can combine Data Validation with a custom formula to block input unless a condition is met. For stronger enforcement, lock the cell using Format Cells and then apply Protect Sheet. This combination is the standard professional approach for building controlled data-entry forms.
What is Flash Fill in Excel?
Flash Fill is an Excel feature that detects a pattern from your typed examples and fills the rest of the column automatically. Trigger it with Ctrl + E or let Excel suggest it as you type. It is ideal for reformatting text, splitting names, or extracting codes, but it produces static values, not live formulas, so it will not update if the source data changes.
The ability to excel populate cell based on another cell value automatically, rather than typing values by hand, is what separates a slow, error-prone spreadsheet from a reliable reporting tool. Start with IF for simple conditions, graduate to IFS and VLOOKUP as your datasets grow, and use Flash Fill for quick text cleanup. Here are three things you can do this week:
- Open an existing spreadsheet and replace at least one manually typed column with an
IForIFSformula. Measure how much time it saves when you update the source data. - Practice Flash Fill on a messy name or phone number column using Ctrl + E. Check the output carefully for any pattern errors.
- Explore real data analytics projects to see how conditional logic in Excel scales into professional reporting and dashboard work. When you are ready to take those skills further, browse the full catalogue of 3.0 University online certification courses in cybersecurity, AI, and data analytics.
Last updated: June 2025. Reviewed by the 3University editorial team.