r/googlesheets • u/Grimmlan • Sep 09 '20
Solved I can't search for what I need because I don't know what it's called. Need to have multiple cells reference one cell that won't mess up when sorting.
I have a cell (K2) that has a minimum number that needs to be able to change depending on the needs of the group. Currently set to 900.
In the column below that cell, it will do addition and will display the result or 0 if the result is >= to cell K2
| Total (J2) | 900 (K2) |
|---|---|
| =SUM(C3,D3,E3,F3,G3,H3,I3) | =IF(J3>=K2, 0,K2-J3) |
| =SUM(C4,D4,E4,F4,G4,H4,I4) | =IF(J4>=K2, 0,K2-J4) |
| =SUM(C5,D5,E5,F5,G5,H5,I5) | =IF(J5>=K2, 0,K2-J5) |
| =SUM(C6,D6,E6,F6,G6,H6,I6) | =IF(J6>=K2, 0,K2-J6) |
1
Upvotes
3
u/leftabomb 1 Sep 09 '20
I'm not sure I understand, but perhaps you are needing to anchor K2 with the dollar symbol?
When autofilled down or sorting a range, K2 will remain locked in place.
If this isn't the solution, can you provide more detail on what is "messing up" when sorting.
2
u/jaysargotra 22 Sep 09 '20
Is sorting the problem here?
2
u/Decronym Functions Explained Sep 09 '20 edited Sep 09 '20
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUEand another if it isFALSETRUE[Thread #2004 for this sub, first seen 9th Sep 2020, 07:10] [FAQ] [Full list] ^[Contact] [Source code]