Find Formula

kenthehead

New Member
Joined
Feb 26, 2004
Messages
21
I need to find out whether a cell contains a formula or an entered text value and place the result in the adjacent cell

e.g
ABC Text
=A+B Formula
etc, etc

I would prefer the answer as a formula and not VBA code

Thanks in advance

Much appreciated

Cheers

Ken
 
Thanks for that link - very interesting.
I am puzzled by the cell reference "!A1" can you point to help on that?
Thanks
I tested your solution on XL2003 and worked as expected.
Mike Girvin suggested this method to me recently at the end of this thread
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
John

To be honest, I don't remember ever seeing the ISNONTEXT() function before. :)

However, I don't think it is up to this job, at least in some circumstances. In the sheet below
C1 contains directly entered text
C2 contains a formula

ISNONTEXT doesn't distiguish between them.

Similar situation where numbers are involved. The function doesn't distinguish between the formula and the non-formula

Excel Workbook
ABCD
1**Tim BrownFALSE
2TimBrownTim BrownFALSE
3****
4**5TRUE
5235TRUE
Test


Good Observation Pete:

I only tested in a few instances. I should have tested it further. It seemed like it should have worked.
 
Upvote 0

Forum statistics

Threads
1,223,108
Messages
6,170,140
Members
452,304
Latest member
Thelingly95

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