SUMIF equation that pulls criterion from cell data within the row
I am trying to build a SUMIF equation (in sheet #1) that sums data (Hours Used) from a different sheet (sheet #2) if the unique ID matches. I can successfully build the equation where the 'Range' references the Unique ID column in sheet #2, the 'SUM Range' references the data to be summed in sheet #2, and the 'criterion' is manually entered between "".
EXAMPLE that works:
=SUMIF({2024 - Master Timesheet Data Contract Unique ID}, "Karen S-006", {2024 - Master Timesheet Data # of Hours})
HOWEVER, the criterion (Contract Unique ID) will be different in each row, and I would like to use a Column Formula in the Hours Used column. I would like the criterion in the equation to reference the Contract Unique ID column directly. I've tried the following equation, but it returns the answer "0", which is not correct:
EXAMPLE that doesn't work:
=SUMIF({2024 - Master Timesheet Data Contract Unique ID}, "[Contract Unique ID]@row", {2024 - Master Timesheet Data # of Hours})
What am I doing wrong??
Thanks,
Karen
Best Answer
-
remove the quotes from around [Contract Unique ID]@row. The quotes make it look for that specifically instead of what is actually in the cell.
Answers
-
remove the quotes from around [Contract Unique ID]@row. The quotes make it look for that specifically instead of what is actually in the cell.
-
D'oh! Thank you! such a silly mistake! So grateful for your quick reply!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!