If Statements

kathyvn

New Member
Joined
May 5, 2011
Messages
3
I have sheet 1 and sheet 2, I would like to pull the following information from sheet 1 to sheet 2.

if(sheet1c2:c200 equals 19 and sheet1d2:d200 equals sheet2a3 then sum sheet1e2:e200)

could you please tell me what formula to use?
Thank you
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the forums!

Excel 2003 or older:
=SUMPRODUCT(--(Sheet1!C2:C200=19),--(Sheet1!D2:D200=Sheet2!A3),Sheet1!E2:E200)

Excel 2007 or newer:
=SUMIFS(Sheet1!E2:E200,Sheet1!C2:C200,19,Sheet1!D2:D200,Sheet2!A3)
 
Upvote 0
I used the sumifs statement you sent me in and I am getting a value error? I am using Windows XP. What reasons would I get a value error?
 
Upvote 0
My apologies, I left out the quotes:

=SUMIFS(Sheet1!E2:E200,Sheet1!C2:C200,"19",Sheet1!D2:D200,Sheet2!A3)
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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