Any ideas why this isn't working

velthro

New Member
Joined
Aug 29, 2010
Messages
27
=AND(WEEKDAY(CONCATENATE(A2,"/",B1,"/",A15))>1,WEEKDAY(CONCATENATE(A2,"/",B1,"/",A15))<7)

A2 = jan
B1 = 1
A15 = 2011

I am wanting excel to show if this day is a weekday or weekend.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Is it giving you a #VALUE error?

If so, can you change A2 from Jan to 1 and see if that helps?
 
Upvote 0
Works perfectly if I change jan to 1. Any ideas on how to keep January and have the formula to work?
 
Upvote 0
=AND(WEEKDAY(CONCATENATE(A2,"/",B1,"/",A15))>1,WEEKDAY(CONCATENATE(A2,"/",B1,"/",A15))<7)

A2 = jan
B1 = 1
A15 = 2011

I am wanting excel to show if this day is a weekday or weekend.
Try this...

=IF(WEEKDAY(DATE(A15,MONTH(A2&1),B1),2)>5,"Weekend","Weekday")
 
Upvote 0
Or

=WEEKDAY(B1&A2&A15, 2) < 6

(returns True for weekdays)
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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