sum / count Question

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
771
Office Version
  1. 365
Platform
  1. Windows
Good Afternoon,

I have a 2 page workbook that i have a question on if anyone has 5 minutes.

Sheet1 - Summary
Sheet2 - Data

I need to be able to check a column with a name in ( A ) and what colour has been chosen ( D ).

Is there anyway i can get these to add onto my summary page?

Many Thanks
 

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.
Good Afternoon,

I have a 2 page workbook that i have a question on if anyone has 5 minutes.

Sheet1 - Summary
Sheet2 - Data

I need to be able to check a column with a name in ( A ) and what colour has been chosen ( D ).

Is there anyway i can get these to add onto my summary page?

Many Thanks
Something like this...

This formula will work in ANY version of Excel.

=SUMPRODUCT(--(Data!A2:A10="Biff"),--(Data!D2:D10="Green"))

This formula will work in Excel versions 2007 and later:

=COUNTIFS(Data!A2:A10,"Biff",Data!D2:D10,"Green")
 
Upvote 0
I am using the formula you have provided for the Sumproduct but when i press enter it goes to the save screen.
Can the formula be changed to work as below

=SUMPRODUCT(--(Data!A:A=B5),--(Data!D:D=D4))

D4 is the information i want it to match "Biff" and D4 matches "Green" but can change.

I also have column A as a named range "Name" and column D as "Answer" can i substitute these?

Many Thanks
 
Upvote 0
I am using the formula you have provided for the Sumproduct but when i press enter it goes to the save screen.
Can the formula be changed to work as below

=SUMPRODUCT(--(Data!A:A=B5),--(Data!D:D=D4))

D4 is the information i want it to match "Biff" and D4 matches "Green" but can change.

I also have column A as a named range "Name" and column D as "Answer" can i substitute these?

Many Thanks
Try replacing "Data" with your actual sheet name.

=SUMPRODUCT(--(Sheet2!A2:A10=B5),--(Sheet2!D2:D10=D4))

If you're using an Excel version prior to Excel 2007 then *you can't* use entire columna as range references. You have to use smaller specific ranges.
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,904
Members
452,948
Latest member
Dupuhini

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