+ Reply to Thread
Results 1 to 10 of 10

Problem with decimal points

Hybrid View

  1. #1
    Registered User
    Join Date
    12-27-2009
    Location
    IJmuiden, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    11

    Problem with decimal points

    I am using Vlookup to compare our item number with the suppliers item number but the result is removing the decimal point on some but not all items. I would greatly appreciate any help as I have tried everything to try and get the points without success. I have included a small sample but it concerns almost 10.000 items.

    Regards,
    Andrew O' Brien
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Problem with decimal points

    thats because the answer it is returning IS a number, try this...

    =TEXT(VLOOKUP(B20,H:J,3,TRUE),"?,?")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-27-2009
    Location
    IJmuiden, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Problem with decimal points

    Quote Originally Posted by FDibbins View Post
    thats because the answer it is returning IS a number, try this...

    =TEXT(VLOOKUP(B20,H:J,3,TRUE),"?,?")
    This gives me an error message.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Problem with decimal points

    which ones? h2 to h18 are text but h19 onwards are real numbers with 1000 seperators
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    12-27-2009
    Location
    IJmuiden, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Problem with decimal points

    Quote Originally Posted by martindwilson View Post
    which ones? h2 to h18 are text but h19 onwards are real numbers with 1000 seperators
    I have checked the suppliers original price list and the format is numbers but when I paste into new sheet the format changes to a combination of general and numbers.

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Problem with decimal points

    maybe..

    =VLOOKUP(B3,H:J,3,FALSE)

    format as #,###,###
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Problem with decimal points

    it maybe be your regional settings for seperators

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Problem with decimal points

    i tested it again on all your cells and it worked ok. maybe change the , for ;

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Problem with decimal points

    I believe you have to format the cells OR Column as Text and Paste the data using PasteSpecial>>Values to get rid of this issue.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  10. #10
    Registered User
    Join Date
    12-27-2009
    Location
    IJmuiden, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Problem with decimal points

    I solved this by formatting column "A" as Number using the 1000 separator and no decimal places. Thank you everybody for your help,

    Andrew O'Brien

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1