What formula(s) can I use??

BrianX_2024

New Member
Joined
Nov 13, 2024
Messages
3
Office Version
  1. 365
  2. 2016
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: 29
Last edited by a moderator:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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
Hi Peter_SSs,

Thanks you for advice. I have a lot to learn in this forum and it's much appreciated. At work, I use Excel 2016 and at home use 365. I will change it to Excel 2016 on my profile.

With XL2BB, I must admit, I've never heard of it! I'll certainly will have a look!

So much to know in Excel!☺

Thanks for your help!
Brian
 
Upvote 0
At work, I use Excel 2016 and at home use 365.
In that case I suggest that you have both in your profile - as you currently have. Then when you start a thread, state which version or versions any suggested answers are required to work in.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,844
Members
452,948
Latest member
UsmanAli786

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