Payroll Forecasting Sheet-How to setup table by acct number and returning values closest to today's date.

awiley1

New Member
Joined
Jun 16, 2023
Messages
2
Good afternoon. Seeking assistance on developing a formula that would return values closest to today's date. We have a payroll projection sheet thats setup for 25 employees over a fiscal year that allows us to breakout someone's salary via percentage thru up to 20 accounts.

Image 1-I setup a table on each's employee's tab that captures what we entered for each pay period (Example Image 1 shows 80% on acct 1, 20% on acct 2) and the breakout over the entire year.

On table 2, I would like to build a formula that does two things. 1. Capture the current account percentage from employee 1's tab (image 1) based on closest to today's date. 2. This formula knows to only give values that match the account number values listed on K2:AD2. The accounts listed on table 2 arent going to match what's on employee's 1 tab, therefore that needs it own match function (if thats possible).

On table 2, only the first row 4 is needed. Aware that each row needs to be setup towards each employee's tab.

Any questions let me know.
 

Attachments

  • Excel Forum 1.PNG
    Excel Forum 1.PNG
    48.4 KB · Views: 20
  • Excel Forum 2.PNG
    Excel Forum 2.PNG
    39.1 KB · Views: 18

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Good morning, please advise that I've answered my question on this. changed to a dropoff with dates option and performed a sumproduct formula instead. Can mark this as answered. Thank you!

Excel Formula:
=(SUMPRODUCT('Employee #1'!$FJ$12:$GC$38*('Employee #1'!$FJ$11:$GC$11='Current Effort Table'!K$2)*('Employee #1'!$FI$12:$FI$38='Current Effort Table'!$AF$1)))
 
Last edited by a moderator:
Upvote 0
Solution

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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