QUESTION :
I have two cells in the same column adjacent to each other (Q7, Q8). They are used in multiple formulas as range.
eg:
1. SUM(Q1:Q10)
2. SUM(E6:N13)-SUM(P6:AJ13)
How do i skip those two cells from being computed in the formula without making any changes to the formula. I want the value in the cell to be displayed but should not be used in computations.
ANSWER :
Since you are using the SUM() function, there is one other option. SUM() ignores text values, so you could enter the values in Q7 and Q8 as text. Format the cells as Text and enter the numbers with a leading single quote character. In the screenshot below, Excel shows the green warning triangle for numbers stored as text, but the SUM() function only calculates the real numbers.
That approach will also work if Q7 and Q8 contain formulas that return numbers. You simply wrap a TEXT() formula around the existing formula to format the result as text
=TEXT(<yourFormula>,"0")
Select the desired number format.
You can’t omit these cells from being included in the formula without making changes in the formula.
You can’t have your cake and eat it.
I suggest you change the formula to exclude the cell explicitly, like
SUM(Q1:Q10)-sum(q7,q8)
and
SUM(E6:N13)-SUM(P6:AJ13)-sum(q7,q8)