Count Blank

saurabh726

Well-known Member
Joined
Dec 13, 2003
Messages
891
Hi

Is there any formula by which i can count how many blank spaces are there before a text string in a single cell

For ex

help
figure

So if i wanna know how many blank spaces are there before help in single cell and how many blank spaces are there before figure in single cell how do i do that.??

Saurabh
 
Thanx a lot alaydin ur last formula works

hey u can help me in one more thing

i got some numbers which are showing in text format i mean its not getting sum when im adding them is there any way to add them up again they have been extracted from the same source

Saurabh
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
If you need assistance in running the macro, post back; Aladin's revision to the array formula to purge CHAR(160) should do essentially he same thing.

EDIT: :warning: For your last problem, try highlighting the column then click Data | Text to Columns | Finished.
This should re-set the underlying format of the column to General.
 
Upvote 0
saurabh726 said:
Thanx a lot alaydin ur last formula works

hey u can help me in one more thing

i got some numbers which are showing in text format i mean its not getting sum when im adding them is there any way to add them up again they have been extracted from the same source

Saurabh

Are they all numbers what you deal with?
 
Upvote 0
well they are numbers and bascially they are the query type of calls that a agent took but they have been exported from java script of the same software and on formula =istext(No)= True like it saying true and coz of that its not getting add and dont know how to add them up.

Saurabh
 
Upvote 0
saurabh726 said:
well they are numbers and bascially they are the query type of calls that a agent took but they have been exported from java script of the same software and on formula =istext(No)= True like it saying true and coz of that its not getting add and dont know how to add them up.

Saurabh

Change tthe Trim formula to:

=--TRIM(SUBSTITUTE(A1,CHAR(160),CHAR(32)))
 
Upvote 0
You will get #VALUE! if the data in the cell is not reducable to a numeric, such as help3. Can you 1] Tell us what your eyes tell you is in the cell in question, and 2] Tell us what value is returned by =LEN(A1) assuming cell A1 is the cell which is giving you the problem.
 
Upvote 0
In len it shows value 2 if the value is there 1 and on blank it shows 2 i didnt understand the first part what ur were asking for jon..??

and alayudin dont know how to insert values out here..can u help me???

anyways going out for 3 days will be back by the mean time please search for a formula it will be of great help to me.

and i want to thank you jon and aladin u guys had been of gr8 help coz of u guys my format is almost finalised just waiting for these values to get add up

will be back after three days

thanx for your help

Saurabh
 
Upvote 0
You can download Colo's free utility at the bottom of this screen. Once installed, you can take a screenshot of your spreadsheet and load it in a post.

What I was looking for was like this: In cell A1 I see what loks like 123 but it does not act like a number in that it sdoesn't sum. When I do =LEN(A1) the value returned is 4...
 
Upvote 0

Forum statistics

Threads
1,225,194
Messages
6,183,477
Members
453,162
Latest member
Coldone

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