Formula not working properly

Nanaia

Board Regular
Joined
Jan 11, 2018
Messages
198
Would you please provide some feedback on the following formula? It is supposed to be converting the data in cell CSV!AQ3 from feet and inches to decimal inches and doesn't seem to be doing it properly. On my spreadsheet it's showing the result is 4.375 when (I think) it should be 19.625.

The formula was written this way because the CSV the data is pulled from will frequently have spaces randomly put in at the end of it depending on the mood of the data entry person.

I've placed the formula in [ brackets ] and included the number displayed in CSV!AQ3.

Any help is appreciated.


[ =IFERROR(LEFT(CSV!AQ3, FIND("'", CSV!AQ3) - 1), 0) * 12 + SUBSTITUTE(IFERROR(MID(CSV!AQ3, FIND("'",CSV!AQ3) + 1, 8), CSV!AQ3), """", "") ]


CSV!AQ3 contains: 1'-7 5/8"
 

Nanaia

Board Regular
Joined
Jan 11, 2018
Messages
198
I cannot remove the minus. This would require scouring anywhere from one to over 500 rows of data to remove any that were used. Do you have any suggestions how the formula can be altered to work properly if the data entry person adds a minus?
 
Last edited:

mole999

Moderator
Joined
Oct 23, 2004
Messages
9,899
+1 to +3 makes this one work, no idea how that works for other values
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
32,335
Office Version
365
Platform
Windows
How about
IFERROR(LEFT(CSV!AQ3, FIND("'", CSV!AQ3) - 1), 0) * 12 + ABS(SUBSTITUTE(IFERROR(MID(CSV!AQ3, FIND("'",CSV!AQ3) + 1, 8), CSV!AQ3), """", ""))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
32,335
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

Forum statistics

Threads
1,082,382
Messages
5,365,128
Members
400,825
Latest member
Sreekanth_21

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top