Formula modification help

Ian Betteridge

Active Member
Joined
Mar 25, 2006
Messages
472
Morning All,
Can anyone please help with changing this formula....
=IF(A2="","",OR(AND(B2=Sheet2!$F$2,K2>=1),AND(B2=Sheet2!$F$3,K2>=8))+0)

I need the 1 in above formula changing if (as below)

=IF(A2="","",OR(AND(B2=Sheet2!$F$2,K2>= ? ),AND(B2=Sheet2!$F$3,K2>=8))+0)

IF H2 is less than 40725 then ? equal to 1
IF H2 is equal to or greater than 40725 then ? equal to 0.16666

Any help is much appreciated.
Regards Ian
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hello,

I am not able to test fully... would this do:

=IF(A2="","",OR(AND(B2=Sheet2!$F$2,K2>=IF(H2<40725,1,0.16666)),AND(B2=Sheet2!$F$3,K2>=8))+0)
 
Upvote 0
Thanks, that bit works fine.
Could I expand from that a little............

Currently.. =IF(A2="","",OR(AND(B2=Sheet2!$F$2,K2>=IF(H2<40725,1,0.16666)),AND(B2=Sheet2!$F$3,K2>=8))+0)

I need the 8 in above formula changing if (as below)

=IF(A2="","",OR(AND(B2=Sheet2!$F$2,K2>=IF(H2<40725,1,0.16666)),AND(B2=Sheet2!$F$3,K2>= ? ))+0)


IF H2 is less than 40725 then ? equal to 8
IF H2 is equal to or greater than 40725 then ? equal to 1

I've got this but it ain't working?
=IF(A2="","",OR(AND(B2=Sheet2!$F$2,K2>=IF(H2<40725,1,0.16666)),AND(B2=Sheet2!$F$3,K2>= IF(H2<40725,8,1))+0)

Regards Ian
 
Last edited:
Upvote 0
Anyone tell me why this retuns "FALSE" and not a 1 or 0.
=IF(A2="","",OR(AND(B2=Sheet2!$F$2,K2>=IF(H2<40725,1,0.16666)),AND(B2=Sheet2!$F$3,K2>=IF(H2<40725,8,1))+0))

Thanks Ian
 
Upvote 0
Hello,

I think there may be a misplaced paren..
(This would also explain why your formula did not evaluate to a true+0=1 or a false+0=0)
try:

=IF(A2="","",OR(AND(B2=Sheet2!$F$2,K2>=IF(H2<40725,1,0.16666)),AND(B2=Sheet2!$F$3,K2>=IF(H2<40725,8,1 )))+0)
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,551
Members
452,927
Latest member
rows and columns

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