getting a formula to do a similar job as another

LearningEX

Board Regular
Joined
Mar 13, 2015
Messages
208
i would like the following formula (1) and (2) to work in the same way as formula (3)

formula (3)

Code:
=VLOOKUP(Agency_Daily_Input!D9,Agency_Contract!$C$9:$T$10000,IF(AND(WEEKDAY(Agency_Daily_Input!B9)>1,WEEKDAY(Agency_Daily_Input!B9)<7),13,IF(WEEKDAY(Agency_Daily_Input!B9)=7,15,IF(WEEKDAY(Agency_Daily_Input!B9)=1,17)+IF(Agency_Daily_Input!G9>0.708333333333333,1))),FALSE)

the above one return a value based on cell c9 on Agency Daily Input

id like formula (2) to do the same

Code:
=IF(Agency_Contract!X9:X100000=0,0,IF(J9>Agency_Contract!X9:X100000,J9-Agency_Contract!X9:X100000,0))

formula (3)

Code:
=T9*Agency_Contract!$Y$9:$Y$100000*I9
 
I don't! Check your formula gain, did you change all the 21's to 22?
yes sir, but if hours are under the figure in X which we know at this time to be 8 then 8 is displayed in Col if J is under that figure (8). everything else works great btw
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
So you want to add if J9 < 8 then blank!

=IF(J9<8,"",IF(VLOOKUP(D9,Agency_Contract!$C$9:$Y$10,22,FALSE)=0,"",IF(J9>VLOOKUP(D9,Agency_Contract!$C$9:$Y$10,22,FALSE),J9-VLOOKUP(D9,Agency_Contract!$C$9:$Y$10,22,FALSE),VLOOKUP(D9,Agency_Contract!$C$9:$Y$10,22,FALSE))))
 
Upvote 0
So you want to add if J9 < 8 then blank!

=IF(J9<8,"",IF(VLOOKUP(D9,Agency_Contract!$C$9:$Y$10,22,FALSE)=0,"",IF(J9>VLOOKUP(D9,Agency_Contract!$C$9:$Y$10,22,FALSE),J9-VLOOKUP(D9,Agency_Contract!$C$9:$Y$10,22,FALSE),VLOOKUP(D9,Agency_Contract!$C$9:$Y$10,22,FALSE))))

you my friend are a genius now for my auto fill issue that im having when i add a new shift ty very kindly sir.
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,637
Members
449,461
Latest member
kokoanutt

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