IF statement

babymoon

New Member
Joined
Nov 15, 2007
Messages
15
I'm looking for an IF statement that solves this problem:

IF(weekday=Saturday,blank,actual day),IF(weekday=Sunday,blank,actual day)

the formula I'm using is: =IF(A2=$L$2,"",B2),IF(A2=$L$3,"",B2) where A2 is the weekday, L2 is the cell that says Saturday, L3 says Sunday, B2 is the actual date

keeps returning #VALUE
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I'm looking for an IF statement that solves this problem:

IF(weekday=Saturday,blank,actual day),IF(weekday=Sunday,blank,actual day)

the formula I'm using is: =IF(A2=$L$2,"",B2),IF(A2=$L$3,"",B2) where A2 is the weekday, L2 is the cell that says Saturday, L3 says Sunday, B2 is the actual date

keeps returning #VALUE
Is this...

=IF(OR($L$2=A2,$L$3=A2),"",B2)

what you are after? If not, please elaboarate a bit more and post the value that you have in A2.
 
Upvote 0
I'm looking for an IF statement that solves this problem:

IF(weekday=Saturday,blank,actual day),IF(weekday=Sunday,blank,actual day)

the formula I'm using is: =IF(A2=$L$2,"",B2),IF(A2=$L$3,"",B2) where A2 is the weekday, L2 is the cell that says Saturday, L3 says Sunday, B2 is the actual date

keeps returning #VALUE
Here's one way to write that formula...

=IF(OR(A2=$L$2,A2=$L$3),"",B2)
 
Upvote 0
=IF(OR(WEEKDAY(B1)=1,WEEKDAY(B1)=7),"Weekend","Weekdays")

Takes the date value of the cell that houses your date and returns weekday or weekend. Change Weekdays with the actual day and Weekend with ""

George

I'm looking for an IF statement that solves this problem:

IF(weekday=Saturday,blank,actual day),IF(weekday=Sunday,blank,actual day)

the formula I'm using is: =IF(A2=$L$2,"",B2),IF(A2=$L$3,"",B2) where A2 is the weekday, L2 is the cell that says Saturday, L3 says Sunday, B2 is the actual date

keeps returning #VALUE
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,823
Members
452,946
Latest member
JoseDavid

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