If cell (formatted as long date) contains Friday

LLPlates

Board Regular
Joined
Jul 13, 2012
Messages
84
Good Morning,
Please could someone assist me with this, I have tried a lot of things and it may not be possible.
I have a column which is showing certain dates in the format e.g. Friday, 27 March 1998.
What I would like to do is split this information down further to search for different days but cannot
get IF to pick out the days in the cell. Is this possible?
Thank you for reading.
LL Plates
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try the WEEKDAY function.
Book1
AB
13/24/1998 
23/25/1998 
33/26/1998 
43/27/1998Friday
53/28/1998 
63/29/1998 
73/30/1998 
83/31/1998 
94/1/1998 
104/2/1998 
114/3/1998Friday
124/4/1998 
134/5/1998 
144/6/1998 
154/7/1998 
164/8/1998 
174/9/1998 
Sheet1
Cell Formulas
RangeFormula
B1:B17B1=IF(WEEKDAY(A1,1)=6,"Friday","")
 
Upvote 0
You can use the MONTH and YEAR functions for that.
 
Upvote 0
Hi again,
Thanks to your help I have got my sheet further along. thank you.
I have encountered a challenge where if the cell is blank, I am getting #VALUE!
Have tried an IF AND (if the cell is greater than 0 and then your formula but am getting error, so either I have not written it properly or if and doesn't work for weekdays.
Any advice please?
 
Upvote 0
Can you post a small sample and the formula you are trying to use?
Should be able to use something like.
IF(A1="","",Then the formula here)
 
Upvote 0
Can you post a small sample and the formula you are trying to use?
Should be able to use something like.
IF(A1="","",Then the formula here)
Hi, Thank you for your reply.
I have tried that but no luck.
As long as column K is populated this works fine with all the days but I get the #VALUE! when
it is not.

1606694330807.png
 

Attachments

  • 1606694261031.png
    1606694261031.png
    21.5 KB · Views: 5
Upvote 0
My guess is the cell is not really blank. Try using the ISBLANK function like in the example below to see if the cell is blank.
Try the formula in cell L10 to see if that works for you.

IFERROR(IF(WEEKDAY(K10,1)=6,"Friday",""),"")

Book1
KLM
1Thursday, March 26, 1998 
2Friday, March 27, 1998Friday
3 TRUE
4Sunday, March 29, 1998 
5Monday, March 30, 1998 
6#VALUE!FALSE
7Wednesday, April 8, 1998 
8Thursday, April 9, 1998 
9Friday, April 10, 1998Friday
10 FALSE
Sheet1
Cell Formulas
RangeFormula
M3,M10,M6M3=ISBLANK(K3)
L1:L5,L7:L9L1=IF(WEEKDAY(K1,1)=6,"Friday","")
L6L6=TRIM(IF(WEEKDAY(K6,1)=6,"Friday",""))
L10L10=IFERROR(IF(WEEKDAY(K10,1)=6,"Friday",""),"")
 
Upvote 0
Solution
Thank you very much for your patience and continued help.
This works and the formulas are so handy.
Enjoy your day!
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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