Indirect for named formula?

Eskypades

Board Regular
Joined
Nov 19, 2009
Messages
98
I'm not sure how exactly to go about doing this. I know in my head what I'd like to see, but how it works out in Excel I'm not exactly sure. Here is my situation.

I have a spreadsheet that tracks product sales by date and store number. The data is pulled from another spreadsheet and put into a usable format. However, the formula used to sum the product sales varies depending on the day of the week. I've named each of the formulas as follows:

StoreSun
StoreMon
StoreTue
StoreWed
StoreThu
StoreFri
StoreSat

If the weekday of the particular day is a Sunday, then it should reference the StoreSun formula; if Monday, then StoreMon, and so on. I could use a whole lot of nested IF functions (such as IF(WEEKDAY(A1)=1,StoreSun,IF(WEEKDAY(A1)=2,StoreMon,etc...) but that seems rather inefficient, not to mention cumbersome. I thought perhaps the INDIRECT function would work, but this apparently doesn't work with named formulas, only cell ranges. I need to be able to reference the named formula depending on what day of the week it is.

Any help would be greatly appreciated. If there is a simpler way to go about this, I'm all ears.

Thanks,
Stephen
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
OFFSET is volatile (of course, your formulas might be also), but perhaps instead

=choose(weekday(a1), StoreSun, StoreMon, StoreTue, ...)
 
Upvote 0
...and if you told us a little more about the data & what was in the StoreSun formulas etc, we might be able to suggest a more direct alternative.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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