Easy Question?

msimone

New Member
Joined
Sep 30, 2006
Messages
17
If I have the text "B2" entered into cell A1 and in cell B2 I have the value 5...is there anyway to construct a formula where I reference A1 but it calculates it as 5?

Essentially I want the formula to look at cell A1 and have it point to the value of B2 when I do my calculation. Is this poppycock?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

msimone

New Member
Joined
Sep 30, 2006
Messages
17
You're awesome! Thanks Domenic!

Another (probably) stupid question, can you use =INDIRECT across worksheets?
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,705
You're very welcome! If A1 contains ''Sheet2'!B2...

=INDIRECT(A1)

Or, if A1 contains B2...

=INDIRECT("'Sheet2'!"&A1)

Hope this helps!
 

Forum statistics

Threads
1,137,366
Messages
5,681,072
Members
419,950
Latest member
BeckiJae

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
Top