LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Want formula to turn to value by itself

You can use a combination of IF and INDIRECT, like

In A1 I have a validated cell to choose between BU1 and BU2
In A2 i have an If statement:
=IF(A1="BU1";"SUM(B1:B10)";"Count(C1:C10)")
In A3 I have =INDIRECT(A2)

Now if I type BU1 in A1 this will return the formula in A3 to
=SUM(B1:B10) and BU2 will lead to =Count(B1:B10) in A3.
You can use any other condition as tricker or formula, nested IF's or
whatever....and without a macro




On Feb 8, 5:20 am, "Earl Kiosterud" wrote:
Doug,

Only a macro can change the cell to something else. But this might be doable with a
self-referencing formula (circular reference). They are a bit of a pain, though. Why
don't you give your cell formulas and values? That'll be a bit less vague than your
description.

--
Regards from Virginia Beach,

Earl Kiosterudwww.smokeyl.com
-----------------------------------------------------------------------"DougL" wrote in message

...

Is there any way to have a formula within a cell automactially change to a
value by itself? To put this into context, here's a small example. In cells
A1:A12 I have the title of the months plus "forecast" (Jan Forecast, Feb
Forecast, March Forecast,...Dec Forecast). In cells B2:B13 I have the exact
same lookup formula referencing the same cell, G1 (value of 10). I use the IF
formula to not show anything in cells B2:B12 (for now), so let's just
concentrate on cell B1. So my result in B1 = 10. Cell G1 will change
automatically in another month to another value of say 23, so now I want cell
B2 (Feb) to show the 23, but cell B1 to still show 10. In order to do this
cell B1 has to convert to a value instead of a formula. Is there something I
can do rather than manually copying and past valueing the cell?


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A function to Turn Formula into Text? lawson Excel Discussion (Misc queries) 24 January 3rd 08 09:57 PM
turn text into a formula trav2016 Excel Discussion (Misc queries) 1 October 12th 06 09:04 PM
Need a formula that will turn a date red if that over 60 days Holly Excel Worksheet Functions 1 January 17th 06 09:33 PM
Turn Off Formula ? WhiteHawk New Users to Excel 5 May 4th 05 11:41 PM
My formula bar disappeared. How do I turn it on? Anand Excel Discussion (Misc queries) 2 April 27th 05 05:13 AM


All times are GMT +1. The time now is 06:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"