Multiple Max Formulas

gavlink

New Member
Joined
Dec 9, 2019
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
Working on distributing two sets of values across workdays. Have the below formula which works well when I have a full set of data H3 -> U3
However would like to also work when only one set of data is present. see H4 -> U4 results in error as its missing data in A4 and B4.

Any ideas?




Book1
ABCDEFGHIJKLMNOPQRSTU
2Pre-Pro STARTPre-Pro ENDOnsite STARTOnsite ENDRESOURCEPRE-PRO HOURSONSITE HOURS1/4/201/11/201/18/201/25/202/1/202/8/202/15/202/22/202/29/203/7/203/14/203/21/203/28/204/4/20
31/13/202/20/203/1/203/12/20Frank Rogers2461000.0042.4142.4142.4142.4142.4133.930.0055.5644.440.000.000.000.00
43/1/203/12/20Miles Scenic100#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!#DIV/0!
Copy of MASTER GRID
Cell Formulas
RangeFormula
I2:U2I2=H2+7
H3:U4H3=(MAX(0,NETWORKDAYS(MAX(H$2,$A3),MIN((H$2+7),$B3)))/NETWORKDAYS($A3,$B3)*$F3)+(MAX(0,NETWORKDAYS(MAX(H$2,$C3),MIN((H$2+7),$D3)))/NETWORKDAYS($C3,$D3)*$G3)
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Maybe...

H3 copied across and down
=IFERROR(MAX(0,NETWORKDAYS(MAX(H$2,$A3),MIN((H$2+7),$B3))/NETWORKDAYS($A3,$B3)*$F3),0)+IFERROR(MAX(0,NETWORKDAYS(MAX(H$2,$C3),MIN((H$2+7),$D3)))/NETWORKDAYS($C3,$D3)*$G3,0)

M.
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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