• Number to Text problem

    Author
    Topic
    #481955

    I have a vlookup formula in column C that is referencing a number stored as text in column A against a table that also has numbers as text (thousands of lines)

    I’ve converted my main worksheet with the formulas to text and now must go through and hit F2 and Enter (basically touch every line) to get the vlookup formula to recognize the text and return a the value in the table.

    I’ve run into this before and was provided some VBA code that could address the entire row very quickly.

    Any help?

    Thank you,

    JG

    Viewing 0 reply threads
    Author
    Replies
    • #1322967

      select a blank cell and set it to the format you want the row to be in
      copy the cell
      select the cells to convert
      Paste-special – add

      They will all be converted to the new format and be numbers – no VB required

      Steve

      • #1323014

        Further to Steve’s answer, another way to compare ‘apples’ with ‘apples’ is to adjust your vlookup formula.
        =Vlookup(what, where, fetch,lookup type)
        If the thing you are looking up is a number stored as text, and you are matching it against a column where the numbers are ‘numbers’, use =Vlookup(what+0,where,fetch,lookup type).
        If the thing you are looking up is a number stored as number, and you are matching it against a column where the numbers are stored as text, use =Vlookup(“”&what,where,fetch,lookup type).

        Steve’s answer is probably best.

        zeddy

    Viewing 0 reply threads
    Reply To: Number to Text problem

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: