SUMIF help! Or another work around!

Terrick

New Member
Joined
Jun 3, 2015
Messages
47
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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
=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.
 
Upvote 0
=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?
 
Upvote 0
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? :eek:
 
Last edited:
Upvote 0
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? :eek:

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
 
Upvote 0
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.... :confused:
 
Upvote 0
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.... :confused:


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?
 
Upvote 0
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?
 
Upvote 0
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.

As already suggested in your new thread:

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

Forum statistics

Threads
1,213,552
Messages
6,114,278
Members
448,560
Latest member
Torchwood72

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top