finding each blank in a cell

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,012
I am trying to find the location of all the blanks in a cell - the cell is woooord1 thru to word12 below
blankblankblankblankblankblankblankblankblankblankblank
1234567891011
charactersblankswords917171717171717173434
woooord1 worddd2 wwwwwwwwwwwword3 word4 word5 word6 word7 word8 word9 word10 word11 word12901112
formula in first results cell which correctly gives 9 is =FIND(" ",$D$8,FIND(" ",$D$8)+I6-1)
this cell is I7 and has been copied across
the sentence is in D8
the second blank is correctly found
third and subsequent blanks are not found
can anybody tell me why please?

<colgroup><col><col span="2"><col><col><col><col><col span="10"></colgroup><tbody>
</tbody>
 
my own A2 is formatted as wrapped text - could that be a factor?
If you forced the text to wraps using Line Feeds (Alt+Enter), rather than letting it wrap naturally, then yes, that would affect the counts because Line Feeds are physical characters (ASCII 10). If you want us to look at your workbook, post a copy of it to one of the free file sharing websites (so we can all look at it). This is a good one to use...

http://www.box.net/files

Remember to note the URL they give you for the file and post that back here for us to use in retrieving the workbook.
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Just to clarify -- the formula doesn't find the nth blank -- it finds the blank starting after the character position in the cell to the left.

I do not understand what you are saying here. If the cell contains aa bbb cccc ddddd eeee fff gg
I want to find 3 7 12 18 23 27
 
Upvote 0
A​
B​
C​
D​
E​
F​
G​
H​
1​
blank1​
blank2​
blank3​
blank4​
blank5​
blank6​
2​
aa bbb cccc ddddd eeee fff gg
3​
7​
12​
18​
23​
27​
 
Upvote 0
thanks again shg - but it does not work for me - yet - I will open a new spreadsheet and start again.
 
Upvote 0
rick - just saw your post - I just formatted as wrapped text - I did not use shift enter or whatver the command is.
 
Upvote 0
rick - just saw your post - I just formatted as wrapped text - I did not use shift enter or whatver the command is.
Just out of curiosity, what answers are you getting for the text shg posted in Message #13?
 
Upvote 0
01234
aa bbb ccc dddd eeee33377
=FIND(" ", $A$3, B2 + 1)
A3 is words
formula is in B3

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
01234
aa bbb ccc dddd eeee33377
=FIND(" ", $A$3, B2 + 1)
A3 is words
formula is in B3

<tbody>
</tbody>
I tried pretty much everything I could think of and I cannot think of anyway to make the formula shg posted output the numbers (especially repeated numbers) that you show. I think you are going to have to post a copy of your workbook so we can see what is going on directly.
 
Upvote 0
Your formula in B3 is looking on row 2. That doesn't work.
Put your formula in C3 (not B3) and copy across.

Edit:
Change formulas to =FIND(" ", $A$3, B3 + 1)
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

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