Formula based on Day of the Week

PaulThomas

New Member
Joined
Sep 1, 2009
Messages
22
I am looking to create a formula, which is associated with the value in a cell.

So going from A1 to A7, you would have:

Fri Sat Sun Mon Tue Wed Thu

Under each day, I would like to return a value, based on the day. So for example:

If A2 = Fri, the value would be 200
If A2 = Sat, the value would be 400
If A2 = Sun, the Value would be 450

...and so on. So I guess I would need a formula that held 7 conditions to cover each day of the week. Cells A1 to A7 are also formatted as "ddd" and based on another cell in the sheet. Not sure if that is causing issues.

Any help would be appreciated!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Maybe this and copy down
Code:
=LOOKUP($A$2,{"Fri","Sat","Sun","Mon","Tue","Wed","Thur"},{200,400,450,500,600,700,800})
 
Last edited:
Upvote 0
or, but only if there was a regular relationship between days of week and value incrememnts in the scale, you could take advantage of fact that for a date that's a monday:

=weekday(a1)

...equals 2

...in formulas of the form =weekday(a1)+(constant*(formula))
 
Upvote 0
Each day of the week will have a different value, based on criteria. So there is not pattern to play off of.

The formula from Michael M did not work but it looks like it is on the right path. The days will jump over one cell each day, which is why I wanted to have this formula in under each day, to have the value linked.

But I thank you both for the input. With any luck, I will get there. :)
 
Upvote 0
Paul.
Ok, if my formula did not work, can you give me a clue as to why it didn't !!
Then maybe I can adjust it to suit.
Your explanation isn't quite clear enough.
Have a look at the 2nd line of my tag to download ExcelJeannie and then you can post
a screen shot of what you have ....and what you would like as a result
 
Upvote 0
Actually, that seemed to work. I had to convert the "ddd" cells to text and then it worked perfectly.

Thanks again!!!
 
Upvote 0
Excellent....glad you got it sorted !!
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,844
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