I have a dddd format but the value is still a number.

furstukin

Board Regular
Joined
Apr 22, 2011
Messages
71
I have a spreadsheet I am working on where I have to forecast based on a Fiscal Month and use daily percentages for each day i.e. Monday Tuesday Wednesday etc.

Currently in say cell A2 I have the date and right above that in cell A1 is a reference to A2 but with a dddd format rather than the d/m/yy format.

What I want to do is have yet another cell, say A3, reference A1 with a nested "IF" saying something like.

=if(A1=Monday,A5,if(A1=Tuesday,B5,if(A1=Wednesday,C5,Null))).... etc so that it will pick the correct percentage no matter what day of the week my fiscal month starts on.

However it always sees the cell A1 as a number value rather than the day of the week it is displaying so it returns #VALUE! each time I try this.

Is there anyway to get it to read the day of the week rather than a value for the date of the month it represents?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try replacing your IF formula with:

=INDEX(A5:G5,,WEEKDAY(A1,2))
 
Upvote 0
Try instead in A1

=TEXT(A2,"dddd")

I could not seem to make that work for me. It just kept saying #Name?


<HR style="BACKGROUND-COLOR: #ffffff; COLOR: #ffffff" SIZE=1>
Mrkowz said:
Try replacing your IF formula with:

=INDEX(A5:G5,,WEEKDAY(A1,2))

However this worked perfectly and with out the super long nested "if" statement. Thanks for the help everyone.
 
Upvote 0

Forum statistics

Threads
1,224,604
Messages
6,179,857
Members
452,948
Latest member
UsmanAli786

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