Shorten this formula, if it can be done

TiggerToo

Board Regular
Joined
Feb 26, 2002
Messages
158
Can anyone write a shorter formula, and can you also write me a formula using a lookup table for the formula below. This formula goes in 28 line.

=IF(OR($A6=$F$2,$A6=$F$2+7),"Sun",
IF(OR($A6=$F$2+1,$A6=$F$2+8),"Mon",
IF(OR($A6=$F$2+2,$A6=$F$2+9),"Tue",
IF(OR($A6=$F$2+3,$A6=$F$2+10),"Wed",
IF(OR($A6=$F$2+4,$A6=$F$2+11),"Thu",
IF(OR($A6=$F$2+5,$A6=$F$2+12),"Fri",
IF(OR($A6=$F$2+6,$A6=$F$2+13),"Sat","")))))))

Thank
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Al,
I will send you a copy of the sheets need to help me figure out what I am trying to accomplish.

Thanks again,
A long winded Aircraft Mechanic,
Walter
Never Stop Learning
 
Upvote 0
On 2002-04-20 05:08, TiggerToo wrote:
Can anyone write a shorter formula, and can you also write me a formula using a lookup table for the formula below. This formula goes in 28 line.

=IF(OR($A6=$F$2,$A6=$F$2+7),"Sun",
IF(OR($A6=$F$2+1,$A6=$F$2+8),"Mon",
IF(OR($A6=$F$2+2,$A6=$F$2+9),"Tue",
IF(OR($A6=$F$2+3,$A6=$F$2+10),"Wed",
IF(OR($A6=$F$2+4,$A6=$F$2+11),"Thu",
IF(OR($A6=$F$2+5,$A6=$F$2+12),"Fri",
IF(OR($A6=$F$2+6,$A6=$F$2+13),"Sat","")))))))

Thank

=CHOOSE(MOD($F$2-$A$2,7)+1,"Sun","Mon","Tue","Wed","Thu","Fri","Sat")
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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