Sum numbers based on multiple criteria

Huizar

Board Regular
Joined
Aug 11, 2016
Messages
94
Hello Excel Gurus,

I probably have a simplistic ask here, but I'm having trouble find the solution. Im trying to do a formula that allows the follwoing:

Sum numbers based on a key word "Incremental" and if Incremental then start the sum Until the month of July, all other regular words start the sum in January.

So Jon D would spread the the 50 accross Jan thru Dec at 4.16 per month, but Jon Doe would not sum until July and would spread from July thru Dec at 10 per month. I have a specific formula to run the spread, but i'm really trying to figure out when to start that count in July based on the word Incremental.

EmployeeStatusHours
Jon DVarious50
Jon DoeIncremental120
Jon DoIncremental60
John DoooeVarious45

any help would be greatly appreciated.

Thank You!!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Can you clarify. You use the word sum but everything else indicates you want to spread / allocate to months.
Do you have month columns to the right of what you are showing ?
Do you want the Hours divided by 12 and then populate either Jan - Dec or for incremental Jul - Dec ?
What columns are you using for the above and what columns for Jan - Dec ?
 
Upvote 0
Sorry for the confusion. You are right, i want to allocate to months. For example for Jon D is 50 hours total so with a formula to % distribution it allocates across the 12 months.

But for Jon Doe want the allocation of the 120 hours across July-through December or 6 months because he is an incremental employee.


My distribution formula looks like the following: Hours* (Pay Reg Days/Total Pay Reg Day) <<---This distributes it across the 12 months. The Pay Reg Days are the pay days for each month from Jan thru Dec.

With Jon Doe I want the distribution to start until July because he is an incremental employee

Hopefully this makes a bit more sense.

Thanks
 
Upvote 0
It's 1am here.
Do you have months across the sheet and if so what are the columns eg letter for Jan & Dec ?
 
Upvote 0
I am afraid you are giving me very little to go by.
Step 1 of coming up with a formula is to have some sample data to work with which uses the same layout as you are using.
How the formula is going to work out where July starts will depend on whether your dates are text values or dates.
So all I can do is make lots of guesses on what the scenario might be.
Based on that, see below.

20210814 Formula Spreadbudget.xlsx
ABCDEFGHIJKLMNOPQ
1Pay Reg Days
2
3EmployeeStatusHoursTotal Pay Reg DaysJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21
4Jon DVarious50261212023222122222222212223
5Jon DoeIncremental120261212023222122222222212223
6Jon DoIncremental60261212023222122222222212223
7John DoooeVarious45261212023222122222222212223
8
9
10Just pulling down from aboveFormula Driven Result
11
12EmployeeStatusHoursTotal Pay Reg DaysJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21
13Jon DVarious502614.023.834.414.214.024.214.214.214.214.024.214.41
14Jon DoeIncremental12026100000010.1110.1110.119.6610.1110.57
15Jon DoIncremental602610000005.065.065.064.835.065.29
16John DoooeVarious452613.623.453.973.793.623.793.793.793.793.623.793.97
17
Data
Cell Formulas
RangeFormula
D4:D7D4=SUM(E4:P4)
E4:P7E4=NETWORKDAYS(E$3,EOMONTH(E$3,0))
A13:D16A13=A4
E13:P16E13=ROUND(IF($B13<>"Incremental",$C4*E4/$D4,IF(MONTH(E$3)<7,0,$C4*E4/$D4)),2)
 
Upvote 0
Solution
I am afraid you are giving me very little to go by.
Step 1 of coming up with a formula is to have some sample data to work with which uses the same layout as you are using.
How the formula is going to work out where July starts will depend on whether your dates are text values or dates.
So all I can do is make lots of guesses on what the scenario might be.
Based on that, see below.

20210814 Formula Spreadbudget.xlsx
ABCDEFGHIJKLMNOPQ
1Pay Reg Days
2
3EmployeeStatusHoursTotal Pay Reg DaysJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21
4Jon DVarious50261212023222122222222212223
5Jon DoeIncremental120261212023222122222222212223
6Jon DoIncremental60261212023222122222222212223
7John DoooeVarious45261212023222122222222212223
8
9
10Just pulling down from aboveFormula Driven Result
11
12EmployeeStatusHoursTotal Pay Reg DaysJan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21
13Jon DVarious502614.023.834.414.214.024.214.214.214.214.024.214.41
14Jon DoeIncremental12026100000010.1110.1110.119.6610.1110.57
15Jon DoIncremental602610000005.065.065.064.835.065.29
16John DoooeVarious452613.623.453.973.793.623.793.793.793.793.623.793.97
17
Data
Cell Formulas
RangeFormula
D4:D7D4=SUM(E4:P4)
E4:P7E4=NETWORKDAYS(E$3,EOMONTH(E$3,0))
A13:D16A13=A4
E13:P16E13=ROUND(IF($B13<>"Incremental",$C4*E4/$D4,IF(MONTH(E$3)<7,0,$C4*E4/$D4)),2)

Alex,

this is exactly what I was looking for. Sorry about the clarity, but you hit the nail on the head! Your logic makes complete sense.

Thanks a million!!!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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