HI,
I am using Excel 2016.
Need help to extract specific number/value from a single cell.
The text is in Column "A" and result is in Column "B". Sample sheet attached.
Thanks
Nitesh
HI,
I am using Excel 2016.
Need help to extract specific number/value from a single cell.
The text is in Column "A" and result is in Column "B". Sample sheet attached.
Thanks
Nitesh
There's no common logic here, so I don't think it's going to be easy. Have you covered all eventualities with this sample?
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. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Yes Ali and before posting I have tried the solutions available on google but didn't get the result which I am expecting.
That's not what I meant at all!
Does your sample file show all possible types of number that need extracting, or are there other scenarios?
Yes, all possible types of number that need extracting
This formula caters for the 4 specific examples that you included in your sample file:
=IF(COUNTIF(A2,"*#*"),MID(A2,FIND("CSI#",A2),12),IF(COUNTIF(A2,"* No.*"),MID(SUBSTITUTE(A2," No.","#"),FIND("CSI#",SUBSTITUTE(A2," No.","#")),12),IF(ISNUMBER(--RIGHT(A2,8)),RIGHT(A2,8),"")))
You can put it in C2 and copy down, so you can compare directly.
If you have other variations in your data you need to point these out to us, as ALI has already asked, as the formula may not work fully.
Hope this helps.
Pete
Thanks Pete , its worked![]()
Glad to hear it - thanks for the rep.
Pete
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks