Calculation Issues

How to Increase an Excel Value When Another Cell Contains Specific Text

Camila MilosovichCamila Milosovich Nov 11, 2026 869 views

Question details

The user needs a way to conditionally increase the value in a cell when a referenced cell contains specific characters, such as "P" or "T".

How to Increase an Excel Value When Another Cell Contains Specific Text
Product
Excel
Device & OS
not provided
Scenario
Setting up a conditional spreadsheet calculation where an output value increments or changes based on text input in a secondary reference cell.
Observed behavior
Standard formulas cannot permanently accumulate or add to their own existing value without triggering a circular reference error.
Before you start

Determine whether you need the cell to permanently accumulate a new value every time the reference cell is edited, or if you simply need it to display a higher static number when the condition is currently met.

Solution 1Recommended

Use an IF and OR Formula for Conditional Values

This is the safest and most standard method. Use it when you want the cell to display a specific, elevated base value whenever the target cell currently contains specific text.

Standard spreadsheet formulas cannot continuously add to their own prior value without causing a circular reference. Instead of permanently incrementing, you can base the calculation on a normal base value and add to it only when the condition is true.

1
Select the Formula Cell

Click on the cell where you want the conditional result to be displayed (for example, G2).

2
Input the IF and OR Function

Type the formula =IF(OR(L2="P",L2="T"),6,5) into the formula bar. In this example, 5 is your base value and 6 is your increased value.

3
Apply and Test

Press Enter to apply the formula. Test it by typing 'P' or 'T' into cell L2. The formula cell will automatically update to the elevated value.

Use an IF and OR Formula for Conditional Values
Dynamic Values: If your base value needs to change dynamically, you can use a formula like =IF(OR(L2="P",L2="T"), 5+1, 5) or replace the '5' with a cell reference.

Easily Manage Conditional Formulas with WPS Spreadsheet

WPS Office provides an intuitive, highly compatible spreadsheet application that seamlessly handles IF, OR, and advanced logical functions to automate your data calculations without the hassle.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open your existing workbook or create a new one.
  2. 2. Enter Your Data: Input your base data into the reference cells, such as typing 'P' or 'T' in column L.
  3. 3. Apply Formula Logic: Click on the cell meant for the output and type =IF(OR(L2="P", L2="T"), [High Value], [Base Value]).
  4. 4. Drag to Fill: Press Enter, then click the small square at the bottom-right of the cell and drag it down to apply the precise calculation to multiple rows at once.
100% compatibility with Microsoft Excel formulas and formattingBuilt-in robust formula builder to prevent syntax errorsSupport for VBA macros to handle advanced cumulative tasksLightweight architecture that runs smoothly on older devices
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get a circular reference warning when trying to increase a cell's own value?

A circular reference happens when a formula directly or indirectly refers to its own cell. Standard formulas update constantly; if a cell calculates based on itself, it creates an infinite loop. This is why you must use static helper cells or VBA for cumulative counting.

Can I check for more than two letters in the formula?

Yes. The OR function can evaluate many conditions simultaneously. Simply separate each condition with a comma, such as =IF(OR(L2="P", L2="T", L2="X"), 6, 5).

Are the text checks in the IF statement case-sensitive?

No, standard IF equations in spreadsheets are not case-sensitive. Both "p" and "P" will be recognized. If you strictly require case sensitivity, you must enclose the condition within an EXACT function.