What formula(s) can I use??

BrianX_2024

New Member
Joined
Nov 13, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I've tried quite a few lookup functions to work out how to create a formula to sum up our salaries to Oct Year-to-Date. I attach a screen shot and need a formula to add up the salaries (SAL) from Apr-24 to Oct-24 but I can't get it!

Does anybody have any suggestions?

I use Excel 2016. Thanks
Thanks,
Brian
 

Attachments

  • Excel screen shot.png
    Excel screen shot.png
    38.5 KB · Views: 27
Last edited by a moderator:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try this SUMPRODUCT formula. I put a date in cell I12 rather than your text (Reforecast Oct YTD) as this will make it movable or still work when you change for subsequent months.

As an aside, you should always include row numbers and column letters in screenshots.

Book1
ABCDEFGHIJKLMN
1
2
3Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24Jan-25Feb-25Mar-25
4SAL100010001000100010001000110011001100110011001100
5SAL200200200200200200210210210210210210
6SAL100100100100100100105105105105105105
7MAR500500500500500500450450450450450450
8RES200020002000200020002000195019501950195019501950
9SOC505050505050100100100100100100
10
11Reforecast YTD
12Oct-24
13SAL9215
Sheet1
Cell Formulas
RangeFormula
I13I13=SUMPRODUCT(($B$4:$B$9=$E13)*($C$3:$N$3<=I$12)*$C$4:$N$9)
 
Upvote 0
Solution
Try this SUMPRODUCT formula. I put a date in cell I12 rather than your text (Reforecast Oct YTD) as this will make it movable or still work when you change for subsequent months.

As an aside, you should always include row numbers and column letters in screenshots.

Book1
ABCDEFGHIJKLMN
1
2
3Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24Jan-25Feb-25Mar-25
4SAL100010001000100010001000110011001100110011001100
5SAL200200200200200200210210210210210210
6SAL100100100100100100105105105105105105
7MAR500500500500500500450450450450450450
8RES200020002000200020002000195019501950195019501950
9SOC505050505050100100100100100100
10
11Reforecast YTD
12Oct-24
13SAL9215
Sheet1
Cell Formulas
RangeFormula
I13I13=SUMPRODUCT(($B$4:$B$9=$E13)*($C$3:$N$3<=I$12)*$C$4:$N$9)
Thank you so much, it works! So happy and really helpful. Yes, next time when I post screen shots I'll include row numbers and column letters. Thanks for your incredible help!
 
Upvote 0
Thank you so much, it works! So happy and really helpful. Yes, next time when I post screen shots I'll include row numbers and column letters. Thanks for your incredible help!
You’re welcome. Thanks for the feedback.
 
Upvote 0
Welcome to the MrExcel board!

I use Excel 2016.
I'm wondering why then you put 365 in your profile?

1731578206029.png


Helpers will generally be able to assist better if the correct version is shown in your profile. :)


Yes, next time when I post screen shots
Next time, even better than screen shots would be XL2BB
Not only will that include row and column labels but helpers can easily then copy your sample data to test with. (y)
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)
 
Upvote 0

Forum statistics

Threads
1,223,629
Messages
6,173,445
Members
452,514
Latest member
cjkelly15

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