need help please for excel formula

Apollo1979

New Member
Joined
May 9, 2013
Messages
16
Hi Guys,
first of all I would like to thank you, I'm stuck with a formula which it goes way out of my knowledge.


A B C D
1 store1 1 2 1
2 store 2 0 2 1
3 store 4 1 2 4
4 store 1 5 0 0




In column A1 to A1000 I have stores name wich they could repeat more times.

I'm looking for a formula that tells me if in a column a1:a1000 has value store 1 what would it be the amount of products contained in b1 to d1000?

Example
store 1 = 9
Store 2 = 3
etc. etc.

I hope it all makes sense ;)

Thanks Again
Ivan
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi Ivan

Please try:

=SUMPRODUCT((A1:A1000="Store1")*B1:D1000)

The "Store1" value may be replaced by a cell reference containing the store name
 
Upvote 0
Thank You Fyrefly,
I did try changing store1 to a cell reference but it give me value 0, when if I type store name it gives me 10
 
Upvote 0

Excel 2010
ABCDEFGHI
1Store1121Store19
2Store2021Store23
3Store4124Store47
4Store1500
5
Sheet1
Cell Formulas
RangeFormula
H1=SUMPRODUCT(($A$1:$A$4=G1)*$B$1:$D$4)
H2=SUMPRODUCT(($A$1:$A$4=G2)*$B$1:$D$4)
H3=SUMPRODUCT(($A$1:$A$4=G3)*$B$1:$D$4)
 
Upvote 0
feel like a donkey right now,
so here the formula I'm using

=SUMPRODUCT(($D$8:$D$1000=P8)*$G$8:$I$10000)
and with this I get #N/A...
 
Upvote 0
To get that error, you must either not have the value of P8 in D8:D1000 or you already have a #N/A in D8:D1000 or G8:I1000

By the way, your ranges in your quoted formula are different sizes (the purple one is to row 10,000). This wouldn't cause a #N/A though
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,228
Members
448,951
Latest member
jennlynn

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