formula help

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,284
Office Version
  1. 365
Platform
  1. Windows
Hi All, I need formula help. I'm sharing an excel file here and it contains 2 sheets. on one sheet i wrote down the logic and in 2nd sheet i need formula i.e. on cell BA4. Kindly guide me, it is not giving me output as per logic sheet. Can anyone pls help.
 
Microsoft® Excel® for Microsoft 365 MSO (Version 2407) 64-bit
What version of Excel are you using? There are some new functions available in the newer versions that could make this a bit easier.

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Thanks. It would be great if you updated your profile, as described in the link I provided in my previous post. Then people could always see it and not need to ask.
 
Upvote 0
See if this does what you want:
Excel Formula:
=IF(OR(S4=Logic!$B$2,S4=Logic!$C$2),
IF(OR(AND(AJ4="",AK4="",AL4=""),
AND(AJ4>0,AK4>0,AL4>0,NETWORKDAYS(AL4,TODAY())>4),
AND(AJ4>0,AK4>0,NETWORKDAYS(AK4,TODAY())>4),
AND(AJ4>0,NETWORKDAYS(AJ4,TODAY())>4)),1,0),"")
 
Upvote 0
See if this does what you want:
Excel Formula:
=IF(OR(S4=Logic!$B$2,S4=Logic!$C$2),
IF(OR(AND(AJ4="",AK4="",AL4=""),
AND(AJ4>0,AK4>0,AL4>0,NETWORKDAYS(AL4,TODAY())>4),
AND(AJ4>0,AK4>0,NETWORKDAYS(AK4,TODAY())>4),
AND(AJ4>0,NETWORKDAYS(AJ4,TODAY())>4)),1,0),"")
Thank You Joe, for your kind help. I appreciate it. Working better for me now. Thanks for the help again.
 
Upvote 0
Hi Joe, would you be able to help me with one more query which I posted in blog. Subject name is "Macro help". Would highly appreciate if anything you can suggest me on the same.
 
Upvote 0
Hi Joe, would you be able to help me with one more query which I posted in blog. Subject name is "Macro help". Would highly appreciate if anything you can suggest me on the same.
It looks like you already got multiple people, including an MVP, trying to help you over there.
I really do not have the time right now to read through the 5 pages of posts on that question, so I don't think I can help you there.
 
Upvote 0
See if this does what you want:
Excel Formula:
=IF(OR(S4=Logic!$B$2,S4=Logic!$C$2),
IF(OR(AND(AJ4="",AK4="",AL4=""),
AND(AJ4>0,AK4>0,AL4>0,NETWORKDAYS(AL4,TODAY())>4),
AND(AJ4>0,AK4>0,NETWORKDAYS(AK4,TODAY())>4),
AND(AJ4>0,NETWORKDAYS(AJ4,TODAY())>4)),1,0),"")
Hi Joe, This is not correct. I tested it.
Can you correct this please..
Excel Formula:
=IF(AND(OR(S5=Logic!$B$2,S5=Logic!$C$2),IF(AND(AJ5="",AK5="",AL5=""))),1,
IF(AND(OR(S5=Logic!$B$2,S5=Logic!$C$2),IF(AND(AJ5>0,AK5>0,AL5>0,NETWORKDAYS(AL5,TODAY())))>4),1,
IF(AND(OR(S5=Logic!$B$2,S5=Logic!$C$2),IF(AND(AJ5>0,AK5>0,AL5>0,NETWORKDAYS(AK5,TODAY())))>4),1,
IF(AND(OR(S5=Logic!$B$2,S5=Logic!$C$2),IF(AND(AJ5>0,AK5>0,AL5>0,NETWORKDAYS(AJ5,TODAY())))>4),1,
0))))
and, I want to add below formula in this as well..
Excel Formula:
=IF(Y5="","NA",
IF(Z5="",1,
IF(AND(Z5<>"",NETWORKDAYS(Z5,TODAY())>4),0,1)))
 
Upvote 0
attached is the logic page screenshot.
and sharing excel file xl2bb.

report.xlsx
S
1Policy Status
Raw Data
 

Attachments

  • logic.jpg
    logic.jpg
    221.4 KB · Views: 3
Upvote 0
Why have you not used the formula provided by Joe ?
What is the order of the logic. ie
Do only test for Y5="" --> NA if all the other logic is false or if Y5 = "" regardless of the other criteria the answer should be NA ?
Same for Z5<>"" and Network days, is this meant to have the 0,1 reversed ? and if so should this be 0 even if all the other logic says it should be 1.
 
Upvote 0

Forum statistics

Threads
1,222,903
Messages
6,168,939
Members
452,227
Latest member
sam1121

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