LEFT function combined with INDIRECT function

chrisgarcia78

New Member
Joined
Jun 15, 2024
Messages
31
Office Version
  1. 2021
Platform
  1. Windows
Hi, I have an issue trying to use the following LEFT function that automatically delete all characters after numbers and @. This works but when a row is inserted on top of C6 this formula automatically updates, I would like this formula to stay static even if a row is delected or added. I was trying to add the INDIRECT function to this formula but I can't get it to work. PLEASE HELP!

=LEFT(C$6,MIN(FIND({0,1,2,3,4,5,6,7,8,9,"@"},C$6&"0123456789@"))-1)
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi & welcome to MrExcel.
How about
Excel Formula:
=LET(c,INDEX(C:C,6),LEFT(c,MIN(FIND({0,1,2,3,4,5,6,7,8,9,"@"},c&"0123456789@"))-1))
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=LET(c,INDEX(C:C,6),LEFT(c,MIN(FIND({0,1,2,3,4,5,6,7,8,9,"@"},c&"0123456789@"))-1))
Thank you for your help, for some reason when I use this formula it uses the whole "C" column instead of C6
 
Upvote 0
What do you mean it uses the whole column? It is only using the value in C6
 
Upvote 0
Sorry I had to change the row and cell number and made a mistake, but this works perfect. Thank you so much for your time :)
 
Upvote 0
One more question, it looks like this formula works in excel 2021 but when used in 2019 I get a #name? error, is there a way to use this in excel 2019?
 
Upvote 0
2019 not LET

=LEFT(INDIRECT("C6"),MIN(FIND({0,1,2,3,4,5,6,7,8,9,"@"},INDIRECT("C6")&"0123456789@"))-1)
 
Upvote 1
A non-volatile formula for 2019
Excel Formula:
=LEFT(INDEX(C:C,6),MIN(FIND({0,1,2,3,4,5,6,7,8,9,"@"},INDEX(C:C,6)&"0123456789@"))-1)
 
Upvote 1
Solution

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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