Ignoring the remainder of a cell

Penfold

New Member
Joined
Mar 4, 2002
Messages
43
An alternative heading may be comments within a cell.

I often like to "play" with large spreadsheets by quickly changing a few numbers here and there and observing the results of the calculations. Is there an equivalent to the ' (single quote) in VBA which tells Excel to ignore everything after the ' ? I want to do this WITHIN the Excel cell (not Insert a Comment).

I'd like to be able to quickly edit a cell to add a new number but at the same time keeping the original number (as a comment which Excel ignores) in case I need to revert back later.

Penfold
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Penfold

There are "cell Comments" under Insert>Comment

...or if the cell has a formula you could use:

=SUM(A1:A100)+N("Just a comment")


Excel will see text within the N Function as zero
 
Upvote 0
Thanks Dave, I know about the Cell comments but I am looking mainly for a fast way of keeping an old number stashed in a comment while I enter a new number.

eg original cell A1: 123.456
cell A1 with new number: 456.789 "123.456"

(where the bit in quotes is the commented bit - *IF* it can be done!)
 
Upvote 0
Sorry Penfold I'm afraid not. The closest you would get is the N() Function I showed, but you would need to read this in the Formula bar and/or while the cell is in Edit mode (f2). Maybe you could 'Flag' all cells containing the N() function with different Font or Background color.

There is also the 'pop-up' Input message within the Validation feature found under "Data", but again you would need to select the cell!
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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