+ Reply to Thread
Results 1 to 17 of 17

Hlookup is driving me to distraction

  1. #1
    Registered User
    Join Date
    07-04-2013
    Location
    Wiltshire
    MS-Off Ver
    Excel 2010 /win 7 pro
    Posts
    17

    Hlookup is driving me to distraction

    Hi
    I have a workbook that has pricing breaks per purchased quantity and I want to look across another sheet within the work book and find the unique number then populate the value from the cell in the adjacent column. I had originaly been trying Hlookup but can't get that to look at the adjacent column.

    On the exaple workbook I would like the formula to be created in cell D2 (Unique number concatonated with quantity) on the "Lookup Sheet", to look across the "Data sheet" and return the value in cell J6 on the Data sheet, and then copy that down and across the other unique numbers


    I have tried index,match but I am really struggling with this, any help would be greatly appreciated as I am at the loosing sleep stage...

    Regards
    John
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,662

    Re: Hlookup is driving me to distraction

    Try this:
    Please Login or Register  to view this content.
    Confirmed with Ctrl-shift-enter
    Quang PT

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Hlookup is driving me to distraction

    Hi John,

    welcome to the forum.

    In D2, enter below formula with key combination: ctrl shift enter

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




    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,662

    Re: Hlookup is driving me to distraction

    I afraid that IFERROR does not work with 2003 version...

  5. #5
    Registered User
    Join Date
    07-04-2013
    Location
    Wiltshire
    MS-Off Ver
    Excel 2010 /win 7 pro
    Posts
    17

    Re: Hlookup is driving me to distraction

    Thank you for the reply.
    I tried this and it returns a value of zero which I thought was a decimal point issue so I have formated the cell to ten decimal placed but the value is still zero.

  6. #6
    Registered User
    Join Date
    07-04-2013
    Location
    Wiltshire
    MS-Off Ver
    Excel 2010 /win 7 pro
    Posts
    17

    Re: Hlookup is driving me to distraction

    Are we saying that the solution offered could work in a later version of ie: excel 2007 or 2010?

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,662

    Re: Hlookup is driving me to distraction

    This is array formular so it must be confirmed with Ctrl-shift-enter rather than Enter only. Hve you tried it?

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Hlookup is driving me to distraction

    Try this non-array formula:

    D2: =SUMIF(Data!$C$2:$O$6,C2,Data!$D$2:$P$6)


    Normally Enter

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Hlookup is driving me to distraction

    Are we saying that the solution offered could work in a later version of ie: excel 2007 or 2010?
    Hi John,

    for my solution - yes


    Regards,
    DILIPandey
    <click on below * if this helps>

  10. #10
    Registered User
    Join Date
    07-04-2013
    Location
    Wiltshire
    MS-Off Ver
    Excel 2010 /win 7 pro
    Posts
    17

    Re: Hlookup is driving me to distraction

    Hi Bebo021999.
    Sorry for the late response, I got sidetracked with other issues.
    Thank you for this, it has been great, I really do not understand array formulas and would like to understand how this formula works because I have a second sheet where the value that I am trying to extract is always five colums along from my unique number (counting the unique number as column 1).
    Would it be possible to use this formula in this way?

    I would also like to thank all of you that responded to my question. I will try each of your suggestions as well.

    I am amazed at the quick responses and the helpfulness of you all and from so far afield!

    Regards
    John

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Hlookup is driving me to distraction

    HI John,

    May be Bebo has missed your request.
    Would be better if you upload a sample workbook to show us your revised requirement.

    Also, if your issue got resolved by now, please mark this thread as [SOLVED]... Thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>

  12. #12
    Registered User
    Join Date
    07-04-2013
    Location
    Wiltshire
    MS-Off Ver
    Excel 2010 /win 7 pro
    Posts
    17

    Re: Hlookup is driving me to distraction

    Hi
    I have attached a workbook for my revised requirement,a similar problem to my original question except I want to extract data from a column further along the sheet rather than the one next to the unique number. Again I have two sheets one contains the data and the second (lookup) is the sheet that I wish to populate with extracts from the data sheet.
    I want to find the unique number in the data sheet and extract the value from the fifth column to the right of the unique number (counting the unique number as column one, this would be cell BH2 in the datasheet). Starting in cell AS2 on the lookup sheet.
    This currently contains an adaptation of the array formula that worked from my original question, but as you can see I really do not know what I am doing, so again any help would be greatly appreciated.

    Regards
    John
    Attached Files Attached Files

  13. #13
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Hlookup is driving me to distraction

    Okay.. ABC2000 found in column BD of "data" sheet, now which column's data you want out of BE to BJ ?


    Regards,
    DILIPandey
    <click on below * if this helps>

  14. #14
    Registered User
    Join Date
    07-04-2013
    Location
    Wiltshire
    MS-Off Ver
    Excel 2010 /win 7 pro
    Posts
    17

    Re: Hlookup is driving me to distraction

    Hi
    Lookup sheet values is as follow
    I would like in as2, Bh2 from the data sheet
    ax2 to have b02
    bc2 to have bv2
    bh2 to have cc2
    bm2 to have cj2
    br2 to have cq2
    then i would want to copy the formula down the sheet to populate the other unique number cells.

    I hope this helps.

    Regards
    John

  15. #15
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Hlookup is driving me to distraction

    Hi John,

    Revised the define names in the formula:-

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


    Press ctrl + F3 to see the names and their formulas.




    Regards,
    DILIPandey
    <click on below * if this helps>
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    07-04-2013
    Location
    Wiltshire
    MS-Off Ver
    Excel 2010 /win 7 pro
    Posts
    17

    Re: Hlookup is driving me to distraction

    Hi
    I ran this on a machine running 2007 and it is an excellent solution.
    Thank you so much for this and also the breakdown of how the formulas work, I now understand a little more about this amazing product.

    Regards
    John

  17. #17
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Hlookup is driving me to distraction

    you are welcome John... cheers



    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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