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>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
1​
blank 1blank 2blank 3blank 4blank 5blank 6blank 7blank 8blank 9blank 10blank 11
2​
9​
17​
34​
40​
46​
52​
58​
64​
70​
77​
84​
3​
woooord1 worddd2 wwwwwwwwwwwword3 word4 word5 word6 word7 word8 word9 word10 word11 word12

In C2 and copied right,

=FIND(" ", $A$3, B2 + 1)
 
Upvote 0
I didn't save the layout, sorry. I expect because it keeps looking in the same place. Watch it evaluate where it returns the first bad value.
 
Upvote 0
shg - I put your formula in and it still gives wrong answers
blankblankblank
123

<colgroup><col><col><col></colgroup><tbody>
</tbody>
9 9 9
 
Upvote 0
I have even replaced the last bit of the formula with 2 3 4 etc rather than a cell reference
 
Upvote 0
A​
B​
C​
D​
E​
F​
1​
blank1​
blank2​
blank3​
2​
9 9 9 9
2​
4​
6​
C2 and across: =FIND(" ", $A$2, B2 + 1)
 
Upvote 0
shg - I put your formula in and it still gives wrong answers
blankblankblank
123

<tbody>
</tbody>
9 9 9
Not sure what you are doing differently, but when I try shg's formula, in C2 and copied across (text string in A3), it works fine for me.
 
Upvote 0
my own A2 is formatted as wrapped text - could that be a factor? I have double checked the formula and that it drags across correctly - happy to send the spreadsheet to you if it would help !
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,167
Members
448,870
Latest member
max_pedreira

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