Formula to MATCH Sheet name to a particular cell and if it matches do a SUMIF on the worksheet than matches it.

allygater

New Member
Joined
Apr 7, 2015
Messages
2
Hi

I am trying to create a formula to Match values in row 8 all of which are dates in this format - Jul-14,
I have worksheets that are named by these dates too eg Jul-14,

I want excel to see if there is a worksheet named what is in cell AA$8 and then if so,
perform a SUMIF on that worksheet to return a value. (if col A:A in the Jul-14 worksheet = the centre number e.g 58, then sum column AH:AH).

also

if there is not a worksheet by this name I want the value to just equal what was in the previous month.

So: if there is a workshete by the name of Ju-14, then SUMIF that worksheet and return the value,
IF NOT, equals Jun-14's value

Hope you can help :)
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,215,470
Messages
6,124,993
Members
449,201
Latest member
Lunzwe73

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