Check cell content.

Rumburak

Banned
Joined
Aug 28, 2018
Messages
36
Hi,

In Excel2010
How can I identify with a formula, if a cell contains a formula, or a written, text or number?

Thanks.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Well that's not very helpful is it?!

You could maybe recreate one as a UDF, though this isn't a perfect solution
pasted into a standard VBA module:
Code:
Function IsFormula(rng As Range) As Boolean
If Left(rng.Formula, 1) = "=" Then IsFormula = True
End Function
 
Upvote 0
Thanks Baitmaster,

I'm not allowed to use VBA codes on my computer at work.
Maybe somebody will help me with a formula.
 
Upvote 0
=IF(ISBLANK(A1),"blank",IF(LEFT(FORMULATEXT(A1),1)="=","formula",IF(ISNUMBER(A1),"number","text")))

FormulaText is not one I've ever needed before, you learn something new everyday...
 
Upvote 0
I'm afraid there is no ISFORMULA in excel 2010.
Neither the FORMULATEXT function is in excel 2010

Have you considered using a named formula via the GET.CELL function with type 48 ... No VBA required.

Just do a search for :
=GET.CELL(48,INDIRECT("rc",FALSE))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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