SUMIF help! Or another work around!

Terrick

New Member
Hello,

Im currently using SUMIF formula to get "Raw Information" from one sheet to the next. My question to you is, can SUMIF grab the text from a certain cell and then search another sheet for it?

=SUMIFS('Raw Data'!C:C,'Raw Data'!A:A, "1",'Raw Data'!B:B, "Towel Bar")

That is the currently formula I'm using to get the information for "Unit 1" and the Qty of "Towel Bar" in that unit. I also have made the formula get the same info, but for Units 2 and 3. Is it possible to get SUMIF to grab the text from a certain cell that would be changing all the time?

If you take a look at the excel sheet I've linked, It shows that Towel Bar and Toilet Paper Holder are two different items, in two different cells. I'm wondering if I can have the formula look at the "Dynamic" cell (with the text inside) and then jump to the other sheet and grab the info needed.

Any help is appreciated! Thanks!

https://app.box.com/s/315fzzkhk3p74iojhd2i6si946itz0ac

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

MrExcel MVP
=SUMIFS('Raw Data'!C:C,'Raw Data'!A:A,E1,'Raw Data'!B:B,F1)

where E1 houses a value like 1 and F1 a value like Towel Bar.

Terrick

New Member
=SUMIFS('Raw Data'!C:C,'Raw Data'!A:A,E1,'Raw Data'!B:B,F1)

where E1 houses a value like 1 and F1 a value like Towel Bar.

Thanks for the quick reply, but I guess I don't follow.

=SUMIFS('Raw Data'!C:C,'Raw Data'!A:A, "1",'Raw Data'!B:B, "Towel Bar")

The "1" in the formula is searching on 'Raw Data' down Column A for that number. (Which separates the unit styles) I can try to explain again what I'm trying to accomplish. I'm trying to get the formula to look at box "'Unit CT' A11" , then search down the column on "'Raw Data' B" to find the same word in that column. Does that make anymore sense?

Terrick

New Member
Thanks for the quick reply, but I guess I don't follow.

The "1" in the formula is searching on 'Raw Data' down Column A for that number. (Which separates the unit styles) I can try to explain again what I'm trying to accomplish. I'm trying to get the formula to look at box "'Unit CT' A11" , then search down the column on "'Raw Data' B" to find the same word in that column. Does that make anymore sense?

I'm assuming that SUMIF multiple criteria won't be able to do what I need. Anyone have any ideas or tips? I'm stumped!

Would Indirect,Match or index be better?

Last edited:

chrysti

Board Regular
I'm assuming that SUMIF multiple criteria won't be able to do what I need. Anyone have any ideas or tips? I'm stumped!

Would Indirect,Match or index be better?

I like using a sum product:
=SUMPRODUCT(--(COLUMN WITH CRITERIA="YOUR THING YOU WANT TO FIND"),--(2nd COLUMN CRITERIA="TOWEL RACK"),(COLUMN TO SUM)

Hopefully this makes sense!

Thanks
C

Terrick

New Member
I like using a sum product:
=SUMPRODUCT(--(COLUMN WITH CRITERIA="YOUR THING YOU WANT TO FIND"),--(2nd COLUMN CRITERIA="TOWEL RACK"),(COLUMN TO SUM)

Hopefully this makes sense!

Thanks
C

Thanks for the reply! This unfortunately isn't what I was looking for.

I need the formula to look at cell 'Unit CT' A11 (no matter the name aka dynamic) and then correspond whatever that name may be to 'Raw Data' B:B to find that name. I completely lost at what to do, or how to explain it more than I have....

Terrick

New Member
Thanks for the reply! This unfortunately isn't what I was looking for.

I need the formula to look at cell 'Unit CT' A11 (no matter the name aka dynamic) and then correspond whatever that name may be to 'Raw Data' B:B to find that name. I completely lost at what to do, or how to explain it more than I have....

So I've been messing with it some more, and got it "somewhat" figured out. But now I'm stumped again.
Im using this formula:
=SUMIF('Raw Data'!\$B\$2:\$B\$27,A10,'Raw Data'!\$C\$2)
That formula references the A10 cell for the text, then jumps to 'Raw Data' to find that text in column C. Now my issue is, it adds ALL of the items together, when I only want it to add "Unit 1" which is marked by 1 in column A. How do I make it search in Column A for "1" only?

Terrick

New Member
So I've been messing with it some more, and got it "somewhat" figured out. But now I'm stumped again.
Im using this formula:

That formula references the A10 cell for the text, then jumps to 'Raw Data' to find that text in column C. Now my issue is, it adds ALL of the items together, when I only want it to add "Unit 1" which is marked by 1 in column A. How do I make it search in Column A for "1" only?

I finally figured it out! ....I think!
=SUMIFS('Raw Data'!C:C,'Raw Data'!A:A,"1",'Raw Data'!B:B,A11)
That formula gets me exactly what I want. Now, if there a way to make it "hide" the 0 if the cell is empty?

MrExcel MVP
I finally figured it out! ....I think!

That formula gets me exactly what I want. Now, if there a way to make it "hide" the 0 if the cell is empty?

You seem to ignore the hepl you got in post #2!...

=SUMIFS('Raw Data'!C:C,'Raw Data'!A:A,E1,'Raw Data'!B:B,F1)

=SUMIFS('Raw Data'!C:C,'Raw Data'!A:A,"1",'Raw Data'!B:B,A11)

are identical for E1 = 1 and F1 = A11. You don't need to quote a number like 1.

=IFERROR(1/(1/SUMIFS('Raw Data'!C:C,'Raw Data'!A:A,1,'Raw Data'!B:B,A11)),"")

Replies
4
Views
789
Replies
10
Views
784
Replies
4
Views
777
Replies
3
Views
751
Replies
7
Views
200

1,195,858
Messages
6,011,980
Members
441,661
Latest member
Pammie007

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back