Formula help

markster

Well-known Member
Joined
May 23, 2002
Messages
579
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Afternoon all

I need help with a formula. I currently have this formula:

=IF(N2="","",IF(S2="Out of Scope","",IF(A2=A1,"Timesheet","New Booking")))

I need to add another couple of criteria to this formula to return a "" if there is a "Y" in cell AE2 EXCEPT if there is a "Y" in cell AF2 in which case it should return "Timesheet".

I've spent a hour try to figure this out whilst on a train earlier and gave up. Can anyone help me?

Thanks very much.
Mark
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Test this try, I think you need this =IF(AE2="Y",IF(AF2="Y","Timesheet",""),2) where you should replace 2 by your original formula:

=IF(AE2="Y",IF(AF2="Y","Timesheet",""),IF(N2="","",IF(S2="Out of Scope","",IF(A2=A1,"Timesheet","New Booking"))))

Does it work?
 
Upvote 0
Maybe...
Code:
=IF(AF2="Y","Timesheet",IF((AE2="Y")*AND(AF2<>"Y"),"",IF(N2="","",IF(S2="Out of Scope","",IF(A2=A1,"Timesheet","New Booking")))))
Good luck. Dave
 
Upvote 0
Test this try, I think you need this =IF(AE2="Y",IF(AF2="Y","Timesheet",""),2) where you should replace 2 by your original formula:

=IF(AE2="Y",IF(AF2="Y","Timesheet",""),IF(N2="","",IF(S2="Out of Scope","",IF(A2=A1,"Timesheet","New Booking"))))

Does it work?

Perfect - thanks very much.
Mark
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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