+ Reply to Thread
Results 1 to 11 of 11

Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    6

    Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    Can someone help me with a formula please, I'm trying to get excel to search a column and return a value based on a value in a drop down box and a value in anther cell.

    For example.

    Cell A15 (on sheet 1) has a drop down box with 18 different options to select from (eg option 1 is ARAMID YARN in cell B4, carbon Yarn C4 etc), this is located on sheet 2. Cell B17 on sheet 1 has a value. In this case the value is 78.4.

    Question 1. What is the formula i need to search the values in Sheet 2 (b5 to b30) in order to find the equal to or greater than value based on on the data in the drop box (sheet 1 A15) and the vaule in Cell B16 on Sheet 1?

    Question 2. Can this be automated so when i select a new option in the drop down box it filters through the corresponding cells and selects the correct value based on the value of the new drop box ption and the value of sheet 1 B17 etc...

    Does this make sense to anyone?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    Maybe will make sense if you upload a small sample workbook
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    Here you go.

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-11-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2013
    Posts
    103

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    @ frankgbr

    Just to confirm. As your file show correct dpi is 14,700.

    Not sure if I understand correctly, is the search result to be 12,600 (Sheet 2, A9) instead?

    The search condition would be 78.4 (Sheet 1, B17) and 71.5 (Sheet 1, E17)

    In sheet 2
    Marathon 600 (100% Aramid) -- 71 (B9)
    Marathon 680 (40% IRC Carb / 60% Aramid) -- 87 (C9)

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

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    Quote Originally Posted by frankgbr View Post
    Here you go.

    Thanks.
    The below formula will get 12600 as result, I could not find any possibilities to get 14,700 since the logic is missing
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    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

  6. #6
    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
    52,929

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    you're description of what you want, and the file you uploaded, do not match. there is no drop=down in A15. B16 is empty, but see if the attached gives you what you want?

    i have included a range name called headings on sheet2, and used this for the drop-down on sheet1

    edit: apologies, use this formula instead of what i gave you...

    =INDEX(Sheet2!$A$4:$S$30,MATCH(B17,Sheet2!$B$4:$B$30,1)+IF(ISERROR(MATCH(B17,Sheet2!$B$4:$B$30,0)),1,0),1)

    (@ Six check the 1st match to see how I arrived at = or greater than)
    Attached Files Attached Files
    Last edited by FDibbins; 11-06-2012 at 12:24 AM.
    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

  7. #7
    Registered User
    Join Date
    11-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    Problem Solved
    C/o Peter!
    Thanks for all the help though!

    =OFFSET(Sheet2!$A$4,
    MATCH(B17,
    OFFSET(Sheet2!$A$4,0,
    MATCH(A15,Sheet2!$4:$4,0)-1,
    MATCH(1E+99,Sheet2!$A:$A,1),1),1),0)
    Explanation
    • MATCH(1E+99,Sheet2!$A:$A,1) finds the row of the bottom of your data on Sheet2
    • MATCH(A15,Sheet2!$4:$4,0) finds the column number for the contents of the dropdown in cell A15
    • The inner OFFSET makes an appropriate column range for the final MATCH to search in
    • MATCH(B17,... matches the minimum required AM in the appropriate column
    • The outer OFFSET returns the desired value from column A
    Peter

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    Who is Peter?

  9. #9
    Registered User
    Join Date
    11-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    A genuis...

    http://excelusergroup.org/members/PeterG/default.aspx

    Thanks again for your help.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    My Congr to him!

    Really nice formula!

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Combine IFERROR and VLOOKUP (am in barking up the wrong tree here?)

    And please take a look to this for understanding why it's not good to cross post(i spend some hours today morning to find a solution for you, while Peter offered you a solution since Yesterday!) .

    http://www.excelguru.ca/content.php?...-cross-posters

+ 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