IF and Sum VBA

AlDeb

New Member
Joined
Jan 31, 2006
Messages
9
I am using Excel 2003. From a cell in one worksheet (Team Points) I need to go to another worksheet (BS) and if certain cells i.e. D5, D6, D9, D10, D13, D14, etc. have the word "Berea" then I need to get a number from H5, H6, D9, D10, D13, D14, etc.and add them up. I hope I have worded this so someone can understand and help. I will do this in what ever way is possible. It does not have to be VBA but I though VBA might be easier.
Thanks for any help.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Can "Berea" occur in cells within column D that you are not interested in e.g. D7, D8, D11, D12 etc.?

If no, then you could use just the SUMIF function
=SUMIF('BS'!D:D, 'TEAM POINTS'!A1, 'BS'!H:H)

In this example, cell A1 on sheet TEAM POINTS has the value "Berea"
 
Upvote 0
=SUMIF(BS!D:AF,"Berea",BS!H:AJ)

This is what is working for me at this time. I now would like to expand pulling numbers from two work sheets: 1 is BS that is in the formula above, I would like to add work sheet BD to the formula if that is possible. I appreciate any help.
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,914
Members
452,949
Latest member
beartooth91

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