VBA/Formula to find cells prefixed with an apostrophe

stephjayne165

New Member
Joined
Jan 20, 2012
Messages
23
Hey Guys,

After hours of googling and not being able to find anything that works for me, I need your help!!

I have come to the conclusion that what I want to do is not possible by formula, and therefore I'm looking at VBA. However, my VBA knowledge is severly limited at best, so I'm going to explain what I want, and hope that on eof you understands and is able to provide me some much needed assistance!

I need to calculate the below for each row in a column of data

IF the field contains only numbers THEN, IF the field is prefixed with an apostrophe, RETURN true/false.

So essentially, if the field is numbers only, is the number prefixed with an apostrophe? yes or no.

The first section I can do with an IF statement and ISNUMBER formula. It's the second part I'm having difficulties with.

Any questions, please let me know.

And, as always, thank you for your assistance, it is very much appreciated!!

Cheers,
Steph :)
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,215,491
Messages
6,125,108
Members
449,205
Latest member
ralemanygarcia

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