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
- How to insert rows in excel automatically based on cell value without vba ✓ - Excel Forum
- What function can automatically return the value in cell c77 - Excel Forum
- Insert a function in cell b2 to display the current date from your system. ✓ - Excel Forum
- Based on the cell values in cells b77 - Excel Forum
- Cell phone codes - Guide
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)