Last space

rae30

Board Regular
Joined
May 27, 2002
Messages
147
from the right I need to know where the last space is.

For example

xxxxxx xxxxxx=7
xxx xxxxx=6
xxxxx x=2

what is the formula that will give me the value?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Sorry there may be more than one space how I need the value after the last space.

For example

x xxx xxxxxx xxxxxx=7
x xx xxxx xxx xxxxx=6
x xx xx x xxxxx x=2
 
Upvote 0
from the right I need to know where the last space is.

For example

xxxxxx xxxxxx=7
xxx xxxxx=6
xxxxx x=2

what is the formula that will give me the value?
Assuming that there will be at least one space character in every cell entry...

=LEN(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255)))+1
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,904
Members
452,948
Latest member
Dupuhini

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