Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Remove the Formula but leave the value alone?

How easy a macro can be developed to remove the formula but leave the value
alone for a group of cells when a special condition matches like my example
here?
I started with the formula below but realized that I cant get the result I
wanted as to leave the value alone for F4 in the IF formula when the month
moving forward. The F4 value originally returned from the Vlookup result.

F4: =IF(F2=B1,VLOOKUP($C2,'Sales07'!$B:$Z,10,FALSE),IF (F2B1,C4+D4+E4,F4))
G4: =IF(G2=B1,VLOOKUP($C2,'Sales07'!$B:$Z,10,FALSE),IF (G2B1,D4+E4+F4,G4))
H4: =IF(H2=B1,VLOOKUP($C2,'Sales07'!$B:$Z,10,FALSE),IF (H2B1,E4+F4+G4,H4))

Where B1 : 200706, F2 : 200706, G2 : 200707, H2 : 200708
Other the problem of circulated reference, when I changed B1 to 200707, the
calculation for G4 & H4 stopped working unless I manually reset F4 to be the
value from the lookup result.

I havent written VBA in Excel but it sounds like it would solve my problem,
right? Can someone help me with the solution or suggestion to do? Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,059
Default Remove the Formula but leave the value alone?

On Jul 7, 5:54 pm, paic101 wrote:
How easy a macro can be developed to remove the formula but leave the value
alone for a group of cells when a special condition matches like my example
here?


I confess I really do not understand the problem you are trying to
solve, specifically if this a one-time thing or repeated periodically,
and if this impacts only one cell or more. I found your explanation
confusing.

But I wonder if you need a macro at all. Would the following suit
your purposes?

Simply select the cell with the formula to be replace, right-click
Copy, then right-click Paste Special and select Values.

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Remove the Formula but leave the value alone?

Yes, I should specify that it's a monthly job as users now need to manually
retrieve data from different worksheet then copy/paste for several hundred
cells per spreadsheet. Plus those cells are spread across different rows
within many different columns, it's time consuming as they can't do the a
group copy/paste at once...That's why I tried to see if we can setup the
Vlookup formula for all months in advance. It would solve the problem except
I couldn't 'Do thing' within the IF formula for past months. With the
limitation of the IF formula, I like to know what and how to solve this
problem. Any more suggestions?

"joeu2004" wrote:

On Jul 7, 5:54 pm, paic101 wrote:
How easy a macro can be developed to remove the formula but leave the value
alone for a group of cells when a special condition matches like my example
here?


I confess I really do not understand the problem you are trying to
solve, specifically if this a one-time thing or repeated periodically,
and if this impacts only one cell or more. I found your explanation
confusing.

But I wonder if you need a macro at all. Would the following suit
your purposes?

Simply select the cell with the formula to be replace, right-click
Copy, then right-click Paste Special and select Values.


Reply
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
how do I remove leading spaces and leave the remianing spaces w Debi Excel Worksheet Functions 6 February 28th 07 03:29 PM
Run formula only if values are enter, otherwise leave blank Karen Excel Worksheet Functions 2 August 26th 06 12:49 AM
Formula <0 leave cell blank Whit Excel Discussion (Misc queries) 3 August 13th 06 02:47 AM
Formula and Condition for a Calculation to leave a zero if the res SSG Devine Excel Worksheet Functions 3 March 13th 06 06:55 PM
Excel should allow delete cell's value but leave formula alone. MrQuick Excel Discussion (Misc queries) 7 January 25th 06 10:28 PM


All times are GMT +1. The time now is 01:22 AM.

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"