ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumif/if with conditions "HELP" (https://www.excelbanter.com/excel-worksheet-functions/73825-sumif-if-conditions-help.html)

BSantos

sumif/if with conditions "HELP"
 
Okay I think I'm making this harder than it should be. I need help!

I am making a summary sheet with several other sheets that hold data.
columns are the same in all the data sheets just the info is different by
part #, store #, store ranking, and qty. I am trying to make a summary page
that when I put this part # in this cell b1 on the summary sheet it will look
at all the data sheets find the part # and if it has this type ie. "A"
ranking in A12 on the summary sheet as well... then sumif the total in this
column "i4:i291" on each data sheet it finds. I need to have at least 7 Data
sheets. Because I have about 200 part # and 1000 stores.

This might not be the right formula to use. So, any help would be GREAT!

=IF(Data1!$A$4:$A$291=summary!$B$1,SUMIF(Data1!$G$ 4:$G$291,$A12,Data1!$I$4:$I$291)IF(Data2!$A$4:$A$2 91=summary!$B$1,SUMIF(Data2!$G$4:$G$291,$A12,Data2 !$I$4:$I$291))

thanks so much, B.

SteveG

sumif/if with conditions "HELP"
 

Not sure if this is what you are getting at but SUMPRODUCT could work.

=SUMPRODUCT((Data1!A4:A291=summary!B1)*(Data1!G4:G 291=A12)*(Data1!1I4:I291))

and

=SUMPRODUCT((Data2!A4:A291=summary!B1)*(Data2!G4:G 291=A12)*(Data2!1I4:I291))

Does that help?

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=516340


WCoaster

sumif/if with conditions "HELP"
 
I would probably try something like this:

=IF(ISNA(VLOOKUP(summary!$B$1,Data1!$A$4:$A$291,1, FALSE)),IF(ISNA(VLOOKUP(summary!$B$1,Data2!$A$4:$A $291,1,FALSE)),SUMIF(Data2!$G$4:$G$291,$A12,Data1! $I$4:$I$291),SUMIF(Data2!$G$4:$G$291,$A12,Data2!$I $4:$I$291)))

Obviously you would have to nest the IF statements up to 7 times which is
pushing the limits of excel but it should work.

Have you used Pivot Tables yet? A little tricky with multile sheets but it
is possible and much better for manipulating large data sets.



"BSantos" wrote:

Okay I think I'm making this harder than it should be. I need help!

I am making a summary sheet with several other sheets that hold data.
columns are the same in all the data sheets just the info is different by
part #, store #, store ranking, and qty. I am trying to make a summary page
that when I put this part # in this cell b1 on the summary sheet it will look
at all the data sheets find the part # and if it has this type ie. "A"
ranking in A12 on the summary sheet as well... then sumif the total in this
column "i4:i291" on each data sheet it finds. I need to have at least 7 Data
sheets. Because I have about 200 part # and 1000 stores.

This might not be the right formula to use. So, any help would be GREAT!

=IF(Data1!$A$4:$A$291=summary!$B$1,SUMIF(Data1!$G$ 4:$G$291,$A12,Data1!$I$4:$I$291)IF(Data2!$A$4:$A$2 91=summary!$B$1,SUMIF(Data2!$G$4:$G$291,$A12,Data2 !$I$4:$I$291))

thanks so much, B.



All times are GMT +1. The time now is 10:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com