pls help sourcing info in formula from cell

sleepers

Board Regular
Joined
May 26, 2004
Messages
203
=IF(ISERROR(J2(INDIRECT($M$13),B7)),"",(J2(INDIRECT($M$13),B7)))

i have 3 scripts in modules.

on my output page i want to be able to select which script sets the page by typing either 1,2,3 in cell J2 and then the formula above will put in either

1=Concatsetdays
2=Concatsetdays2
3=Concatmth

if i type 1 then the first function will fill the page formula in J2 area of formula above

----------------------------------

someone just posted to this and i got an email telling me but when i go to view it - it sais it does not exist. could the person please post response again??
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
40 or so views of your post & no replies - I conclude that we can't quite decipher what you mean.

Let me try & guess - are you saying that you;ve got 3 sheets in your file:

Concatsetdays
Concatsetdays2
Concatmth

...that yoiu want to be variables in your formula?

Please post again with a more detailed example.
 
Upvote 0

Forum statistics

Threads
1,214,854
Messages
6,121,941
Members
449,056
Latest member
denissimo

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