Hello in the attached sheet in column S there are numbers with letters:
001>
C100
C100
C100
100
100
C100
005>
I ask for help to extract the number and then insert it into the corresponding cell of column X
john
Hello in the attached sheet in column S there are numbers with letters:
001>
C100
C100
C100
100
100
C100
005>
I ask for help to extract the number and then insert it into the corresponding cell of column X
john
Please try at X3 copy down
=IF(S3="","",-LOOKUP(1,-MID(S3,MIN(FIND({0,1,2,3,4}+{0;5},S3&1/17)),{1,2,3,4})))
Hi bo_ry
error #N/D
Which string gives the error you report?
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
Please see attached then,
Ok bo_ry is almost correct.
because if the cell format is percentage, the number becomes + 100?
example your formula 1 with percentage becomes 100%
example your formula 100 with percentage becomes 10000%
Maybe this
Enter formula in X3 and copy down
Format Col X as Percentage
Formula:Please Login or Register to view this content.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Hi alkey it's ok.
it is possible to add to the formula if the value is 0 or empty the word "NOT TREATED" is inserted
Try this
Formula:Please Login or Register to view this content.
Hi Alkey the new formula work!
is it possible to add a change?
Now works:
if S3 is zero or empty add "NOT TREATED" otherwise put the formula.
The modica: if M3 is empty do not put "NOT TREATED" and the formula.
john
Try this
=IF(M3="","",IFERROR(1/(1/-LOOKUP(1,-MID(S3,MIN(FIND({0,1,2,3,4}+{0;5},S3&1/17)),{1,2,3,4}))*100),"NOT TREATED"))
Hi bo_ry not work remains "NOT TREATED"
Hi error #N/D
italian: =SE(O(S5={"";0});"NOT TREATED";SE.ERRORE(-CERCA(1;-DESTRA(S5;{1;2;3;4}));-CERCA(1;-SINISTRA(S5;{1;2;3;4})))/100)
english: =IF(OR(S5={"",0}),"NOT TREATED",IFERROR(-LOOKUP(1,-RIGHT(S5,{1,2,3,4})),-LOOKUP(1,-LEFT(S5,{1,2,3,4})))/100)
if:
>100>
C100>
C50>
john
Try this one
In cell M3 enter any character
then enter formula in Cell X3 and copy down
Format Col X as Percentage
Formula:Please Login or Register to view this content.
Please see attached file.
Hi alkey not work
if M3/S3 empty in X3 = NOT TREATED
case: C100> no work
attach esample.
john
You should never use merged cells especially on the cells that you calculate. All you are going to get is more problems.
unfortunately it must work on merged cells
Is this right?
Formula from Post #11
Hi bo_ry it's o.k, thanks you
A greeting
john
Hi I tried your formula in a workbook but I can not solve a problem.
Now your formula is in sheet1 column X
In the M / S columns there are formulas that join the rows of the sheet2.
The problem is that if in the M / S columns there are some errors like #NAME! then your formula does not work.
I enclose the example.
john
#NAME! is Error, then
sheet1
M3 =ifferror(,"") so it show blank, then
X3 formula =IF(M3="","", check M3 is blank so it also show blank
What you you what to show on which cell?
If in M3/M4 Sheet2 there is error in M3 Sheet1 must see only 1 row without error
M3 Sheet1
=IFERROR(INDEX(Foglio2!$M$3:$M$614,ROW(M1)*2-1),"")&" "&IFERROR(INDEX(Foglio2!$M$3:$M$614,ROW(M2)*2-2),"")
Hi bo_ry work well
Now the problem is only for the word NOT TREATED
In X3 sheet1 if M3/S3 sheet2 are empty in
X3 sheet1 does not have to see the word NOT TREATED
john
Please try X3
=IF((M3=" ")+(S3=" "),"",IFERROR(1/(1/-LOOKUP(1,-MID(S3,MIN(FIND({0,1,2,3,4}+{0;5},S3&1/17)),{1,2,3,4}))*100),"NOT TREATED"))
BO_RY your new formula work.
Not work for this case:
If M3 and S3 is empty or M3 not empty and S3 is empty
=IF((((M3=" ")+(S3=" "))OR((M3>0)+(S3=" "))),"",IFERROR........
not work error.
Change all
M3
=TRIM(IFERROR(INDEX(Foglio2!$M$3:$M$606,ROW(M1)*2-1),"")&" "&IFERROR(INDEX(Foglio2!$M$3:$M$606,ROW(M2)*2-2),""))
S3
=TRIM(IFERROR(INDEX(Foglio2!$S$3:$S$606,ROW(S1)*2-1),"")&" "&IFERROR(INDEX(Foglio2!$S$3:$S$606,ROW(S2)*2-2),""))
X3
=IF((M3="")+(S3=""),"",IFERROR(1/(1/-LOOKUP(1,-MID(S3,MIN(FIND({0,1,2,3,4}+{0;5},S3&1/17)),{1,2,3,4}))*100),"NOT TREATED"))
in no case does NOT TREATED come out
Hi
this formula:
=IF(M3="","",IFERROR(1/(1/-LOOKUP(1,-MID(S3,MIN(FIND({0,1,2,3,4}+{0\5},S3&1/17)),{1,2,3,4}))*100),"NOT TREATED"))
if M3 is empty inserts NOT TRATED if not empty inserts the formula.
I request a change.
if M3 and S3 are empty, do not insert NOT TREARED and do not enter the formula, it must remain empty.
if M3 is not empty and S3 is empty, enter NOT TREATED
if M3 and S3 are not empty, enter the formula.
You might want to remove the SOLVED tag from the thread.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
What about if M3 is empty and S3 is not empty?
Maybe
Formula:Please Login or Register to view this content.
Hi bor_ry
What about if M3 is empty and S3 is not empty?
no this case
Please try
=IF(M3&S3="","",IF(S3="","NOT TREATED",-LOOKUP(1,-MID(S3,MIN(FIND({0,1,2,3,4}+{0\5},S3&1/17)),{1,2,3,4}))/100))
If this still not work then please upload you sheet with expected result.
Hi bo_ry
the last modification should be correct.
To be sure, I have to try it in the office next week
Greetings and thanks.
john
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks