Hi,
I need to extract the number of hours from a text string.
The length varies. It can be 1 to 5 digits (eg. 6hrs or 30.36667hrs).
I tried using mid and find, but need help with the length (file attached)
Thanks
Hi,
I need to extract the number of hours from a text string.
The length varies. It can be 1 to 5 digits (eg. 6hrs or 30.36667hrs).
I tried using mid and find, but need help with the length (file attached)
Thanks
Hi,
Use this in I2 copied down:
Formula:Please Login or Register to view this content.
Results converted to Real numbers for further math/comparison, results Blank if No HRS values present, see attached.
Last edited by jtakw; 10-04-2018 at 05:29 PM.
Thanks Jtakw,
It works perfectly.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Or try:
=-LOOKUP(1,-MID(H2,FIND("HRS",H2)-{1,2,3,4,5,6,7},{1,2,3,4,5,6,7}))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks