0

I have used mid formula in excel 2003 to extract text from another excel cell. I now want to use the resultant value in a lookup formula - how do i get the lookup formula to use the Value derievd from the previous formula. at the moment it doesn't seem to be able to.

2
  • It might help if you posted the two formulas in question. It's a bit unclear what you're trying to do at the moment.
    – mavnn
    Dec 10, 2009 at 12:59
  • Show the formula for help Dec 10, 2009 at 13:02

4 Answers 4

1

Mid extracts text, you must convert it to a number, try

=VALUE(MID(...))
1
  • dear all my current formula is =MID(A3,8,5) it extracts the text e.g IDA68 to cell B2 from the middle of text string which is a file number - that file number has an associated finacial value for example 20000. so i have a list on sheet 2 (=VLOOKUP(B2,Sheet2!$A$1:$B$27,2,FALSE) that is looking up the file number and posting the relevant file value against the relevant file reference
    – total newbie
    Dec 10, 2009 at 13:15
0

Is the result a number? If so, use the Value function:

Value(Mid(A1, 3, 5))

1
  • dear all my current formula is =MID(A3,8,5) it extracts the text e.g IDA68 to cell B2 from the middle of text string which is a file number - that file number has an associated finacial value for example 20000. so i have a list on sheet 2 (=VLOOKUP(B2,Sheet2!$A$1:$B$27,2,FALSE) that is looking up the file number and posting the relevant file value against the relevant file number
    – total newbie
    Dec 10, 2009 at 13:08
0

Hi guys i found out i was out by one characther on the mid formula and so was adding a space in front of the file reference so it actually is working now with no need for further adjustments - thanks for your time anyway....

-1

If you're working with a lot of data, after doing the Mid calculations in one column, you could create a new column and do a paste special to paste only the values into the new column.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy