Need some help with formula

mike4slund

New Member
Joined
Jan 2, 2025
Messages
5
Office Version
  1. 365
  2. 2024
  3. 2016
Platform
  1. Windows
  2. MacOS
Hello, I have searched and can not seem to locate the help I need.

I have a spreadsheet that is tracking when a person took a class, there are 8 options. Each class is worth a dollar amount. If they are terminated within 180 days of taking this class, thy are to be charged accordingly. The formula I believe should be something like this, I am just struggling to get that into something excel understands. I have also attached a screenshot.

=IF S5 (termed date) is 180 days less than any date in K5:R5 then add the total of that column dollar amount together.

Screenshot 2025-01-02 115823.png
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
MrExcelPlayground23.xlsx
ABCDEFGHIJK
1$ 54.00$ 15.00$ 87.50$ 97.50$ 15.00$ 65.00$ 60.00$ 40.00
2EmployeeTraining1Training2Training3Training4Training5Training6Training7Training8Termed DateOwed
3Fred12/2/20241/14/202411/27/202412/4/2024$ 119.00
4Harry12/5/202410/5/2024
5Sally1/1/202410/1/20241/1/202312/1/20241/1/2025$ 137.50
Sheet25
Cell Formulas
RangeFormula
K3:K5K3=IF(J3<>"",SUM((B3:I3>=J3-180)*$B$1:$I$1),"")
 
Upvote 0
Solution
Wow! Thank you for the assistance! I hope I can get the rest of the way there. If i am calculating correctly, It looks like something is not adding right in your formula. Based on dates. K3 should equal $216.50 not $119 and k5 should equal $152.50.
 
Upvote 0
sorry for the double post. but now that i kept the formula and just re-entered the data, it appears to be calculating correctly.
 
Upvote 0
actually, i think the error is when it comes close to december dates for some reason.
 
Upvote 0

Forum statistics

Threads
1,225,295
Messages
6,184,127
Members
453,215
Latest member
pschatzow

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