+ Reply to Thread
Results 1 to 14 of 14

Vlook up with Trim not working either,

  1. #1
    Forum Contributor
    Join Date
    01-31-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    124

    Vlook up with Trim not working either,

    excel 2013 Vlook up used with trim also , not working, any idea,

    =IFERROR(VLOOKUP(TRIM(D6),'Account Detail.xlsx'!$A$3:$F$278,6,FALSE),"")


    can some one please help, what's wrong with formula, I use Vlook up all the time,

    thanks in advance

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlook up with Trim not working either,

    Nothing wrong with the 'syntax' of the formula.

    It looks to find a match to D6 (after being Trimmed) within column A of Account Detail.
    If a match is found, returns a value from column F of Account Detail
    If there is no match, it returns ""

    In what way is it not working for you?
    Do you get an error? What error?
    Do you get the wrong result, what result DO you get?

    I would guess it's just returning ""
    Try removing the Iferror part, what is the actual error?

    Can you attach a sample book ?

  3. #3
    Forum Contributor
    Join Date
    01-31-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Vlook up with Trim not working either,

    when I do V Lookup not getting any result , se attaché the File
    Variance Analysis Cost tabs, Column H has V look up Formula wants link the Voucher from Account detail 2 Column F

    why I am getting any result

    please help

    thanks
    Attached Files Attached Files

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlook up with Trim not working either,

    You have a few problems here,

    Why bother with the Trim function on C6 ?
    You need to lock the ranges in the formula with the $ so they don't change as you drag the formula down.

    Vlookup can't do the task, because it appears your matching values are in column F, and you want to return a value from column A
    Vlookup can't do that, it can only find match in A and return value from F.

    Try
    =IFERROR(INDEX('Account Detail (2)'!$A$3:$A$6,MATCH(C6,'Account Detail (2)'!$F$3:$F$6,0)),"")

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlook up with Trim not working either,

    Or with modified VLOOKUP
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Contributor
    Join Date
    01-31-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Vlook up with Trim not working either,

    when I tried with both formula its giving me G.L Acct on H column on Variance Cost tab;

    I want to return the Voucher with voucher with V look up on H column

    thanks

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,694

    Re: Vlook up with Trim not working either,

    Change A range to F


    =IFERROR(INDEX('Account Detail (2)'!$F$3:$f$6,MATCH(C6,'Account Detail (2)'!$F$3:$F$6,0)),"")
    Last edited by JohnTopley; 06-20-2016 at 03:06 PM.

  8. #8
    Forum Contributor
    Join Date
    01-31-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Vlook up with Trim not working either,

    hi John

    I added this formula , still not matching Voucher to Voucher

    please see attached the file,

    what I am doing wrong, can some one please look at the file


    really appreciate it

    thanks
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,694

    Re: Vlook up with Trim not working either,

    Aren't we matching against account detail ...

    =IFERROR(INDEX('Account Detail (2)'!$F$3:$F$6,MATCH('Variance Analysis Cost'!C6,'Account Detail (2)'!$F$3:$F$6,0)),"")

  10. #10
    Forum Contributor
    Join Date
    01-31-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Vlook up with Trim not working either,

    wants to do V look up Variance tab Column C Voucher

    Account detail Tab Column F Voucher

    add formula on Variance tab on H column to bring the Voucher # from Account detail tab

    that's the formula not working with V look up

    please help

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlook up with Trim not working either,

    Take a deep breath, step back, relax.

    Can you explain in words (not by showing us a formula that doesn't work) What do you want the formula to actually do.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,694

    Re: Vlook up with Trim not working either,

    That's what the above does!!!! put in H6 and copy down.

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlook up with Trim not working either,

    Try it now
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or just this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 06-20-2016 at 04:05 PM.

  14. #14
    Forum Contributor
    Join Date
    01-31-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Vlook up with Trim not working either,

    thanks every one, its worked,

    yesterday must be typing wrong formula,

    thanks again for all your help

    you guys are great !!!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HELP working out VLOOK formula i need to use across tabs
    By Tafflisa in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-26-2016, 06:09 PM
  2. VLook up not working
    By LastJedi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2015, 10:26 AM
  3. [SOLVED] Vlook Up function not working Properly, donot know, need help
    By Bitto in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2015, 08:44 AM
  4. Vlook up not working on multiple columns
    By benji8798 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2013, 10:18 PM
  5. Vlook & Macro not working together
    By dstrdOne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 04:43 PM
  6. Trying to trim a trailing space char and the Trim function isn't working
    By Psychochook in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2007, 11:28 PM
  7. Trim not working
    By Stuart in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2005, 03:06 PM

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