Formula returns #Value!

mlt1

New Member
Joined
Jun 30, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
A7 = name and address as "Mister Big5555East Road
C7 = Number of characters before first number

=Min(search({0,1,2,3,4,5,6,7,8,9},A7$"0123456789")),left(A7,C7-1),Right(A7,Len(A7)-c7+1))

All works when I use three cells with each step in the formula.

Thank you!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
It's not clear to me what you are actually trying to do, or where you want the formula? Do you just want everything after the first number? If so:

Excel Formula:
=MID(A7,Min(search({0,1,2,3,4,5,6,7,8,9},A7&"0123456789")),len(A7))

should do.
 
Upvote 0
Maybe in (for instance D7)
Excel Formula:
=TEXTBEFORE(A7,SEQUENCE(,10,0))
and then
Excel Formula:
=SUBSTITUTE(A7,D7,"")
 
Upvote 0
I think you can do all of that with one formula:
=SUBSTITUTE(A1,TEXTBEFORE(A1,SEQUENCE(,10,0)),"")
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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