Hello,
I found this formula online and adapted it to some extent, and I'm trying to figure out how it works, but also why I get some strange results.
My goal is to find and extract only the numbers that occur after a specific text in a string, in this case the word "day". So in this example, I need the output to be "1". I don't want the numbers that are further to the right of the numbers that are closest to "day". Here in the case of A8, I get a strange output, and wonder why.
Of course, if there are other better formulas, please let me know as well.
Thanks for any input!
I found this formula online and adapted it to some extent, and I'm trying to figure out how it works, but also why I get some strange results.
My goal is to find and extract only the numbers that occur after a specific text in a string, in this case the word "day". So in this example, I need the output to be "1". I don't want the numbers that are further to the right of the numbers that are closest to "day". Here in the case of A8, I get a strange output, and wonder why.
Of course, if there are other better formulas, please let me know as well.
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | dfeDay1 gh23gew | 1 | ||||
2 | Day 1 gh23gew45 | 1 | ||||
3 | gejxqwqDay 1gh23gew | 1 | ||||
4 | dfegejday 1 )gh23gew | 1 | ||||
5 | dfegej32day 1 )gh23gew | 1 | ||||
6 | dfegej32gh23gewDay 1 | 1 | ||||
7 | dfegej32gh23gewDay 1a | 1 | ||||
8 | j32gh23gewDay 1 an | 0.041667 | ||||
9 | j32gh23gewDay 1an | 1 | ||||
10 | dfeDay-1 gh23gew3 | 1 | ||||
11 | dfeDay-1 -gh23gew | 1 | ||||
12 | dfeDay-(1) -gh23gew | 1 | ||||
13 | ||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C1:C12 | C1 | =LOOKUP(10^6,1*MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789",SEARCH("Day",""&A1&""))),{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25})) |
Thanks for any input!