How to use text value in cell as criteria
Solved/Closed
thiago
-
Jul 29, 2010 at 09:21 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jul 30, 2010 at 08:57 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jul 30, 2010 at 08:57 AM
Related:
- How to use text value in cell as criteria
- If cell contains date then return value ✓ - Excel Forum
- Excel "IF" function w/ date in test cell ✓ - Excel Forum
- Excel formula to check if cell contains a date - Excel Forum
- Excel send value to another cell - Guide
- If cell A1 has text then cell B2 has today's Date ✓ - Excel Forum
2 responses
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Jul 30, 2010 at 07:34 AM
Jul 30, 2010 at 07:34 AM
you can use the cell address instead of typing in the value
=SUMIF(A:A; "=" & C1; B:B)
=SUMIF(A:A; "=" & C1; B:B)
Thanks that worked! but just to clarify, the cell address has to be without quotes.
so
=SUMIF(A:A; C1; B:B).
before i even posted here i had tried using the cell address, but i put it between quotes which i know realize meant that Excel was looking for the text value C1 as a criteria instead of the cell address. duh...
so
=SUMIF(A:A; C1; B:B).
before i even posted here i had tried using the cell address, but i put it between quotes which i know realize meant that Excel was looking for the text value C1 as a criteria instead of the cell address. duh...
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Jul 30, 2010 at 08:57 AM
Jul 30, 2010 at 08:57 AM
True. Just a side note (in case you need down the road), by default you are using "=" here. So
=SUMIF(A:A; C1; B:B) is same as =SUMIF(A:A; "=" & C1; B:B)
Lets say you wanted to do a sum if the value were different then you would need
=SUMIF(A:A; "<>" & C1; B:B)
So basically the condition you add as a string before the cell address (which you as noted needs to be outside the quotes)
=SUMIF(A:A; C1; B:B) is same as =SUMIF(A:A; "=" & C1; B:B)
Lets say you wanted to do a sum if the value were different then you would need
=SUMIF(A:A; "<>" & C1; B:B)
So basically the condition you add as a string before the cell address (which you as noted needs to be outside the quotes)