Solved

Reference value as shown

Posted on 2013-02-04
2
119 Views
Last Modified: 2013-02-21
Is there a way to reference what is visibly shown in a cell and not the number in the cell?
0
Comment
Question by:BigWill5112
2 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 38852462
Can you give an example? Most formulas reference the underlying value in a cell - e.g. for a date the underlying value is a serial number - you only see the date if you format the result cell accordingly.

regards, barry
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 38852917
Not sure why you would want to do this.

If you happened to know the number format being applied, you could use the TEXT function.  For example:

=TEXT(A2,"$#,##0.00;($#,##0.00)")

If you do not know ahead of time, you would need to use VBA:

Function CellText(cel As Range)
    
    Application.Volatile
    
    CellText = cel.Cells(1, 1).Text
    
End Function

Open in new window


Keep in mind that as you change the number format on a cell, despite the Application.Volatile you will not get a recalc...
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now