Excel formula Question

tweetyrm

Board Regular
Joined
Apr 2, 2002
Messages
76
Here goes
I have three columns of data I want to have the computer to tell me how many fans I have from a certain location.
example: B 1 Fan
B 1 Boot
c 1 Fan
B 1 Car
B 1 Fan
I can use a countif statement to tell that I have three fans but, I want something that will tell me how many fans do I have that are from the B location in column a. and then how many boot from the b location etc...
Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Best thing to use is the sumproduct formula, works like this:

=SUMPRODUCT((A:A="B")*(B:B="1")*(C:C="Fan"))

This will look down the 3 columns. If there's a 'B' in column A with a '1' next to it in column B and a 'Fan' next to that in column C it'll return a 1 and do the same all the way down the page.

Obviously you can tinker with this to make it count what you want

Audiojoe
I give love a bad name
 
Upvote 0
On 2002-04-03 07:46, tweetyrm wrote:
Here goes
I have three columns of data I want to have the computer to tell me how many fans I have from a certain location.
example: B 1 Fan
B 1 Boot
c 1 Fan
B 1 Car
B 1 Fan
I can use a countif statement to tell that I have three fans but, I want something that will tell me how many fans do I have that are from the B location in column a. and then how many boot from the b location etc...
Thanks

=SUMPRODUCT((A2:A6="B")*(C2:C6="Fan"))

will for example give you the desired count.

Try also using PivotTables.
 
Upvote 0

Forum statistics

Threads
1,214,575
Messages
6,120,334
Members
448,956
Latest member
Adamsxl

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