+ Reply to Thread
Results 1 to 12 of 12

Combined IF and LOOKUP functions - Help please!

  1. #1
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Combined IF and LOOKUP functions - Help please!

    Hi all,

    I am trying to combine the IF and lookup functions in Excel 2010.

    Essentially I have award criteria values of 1-5 in cell a1 selected from a drop down list. Each value has a description attached to it (1 = very poor, 2 = poor etc) that I need to be displayed in cell c1. So if value 1 is selected in cell A1, cell C1 automatically populated is 'poor' and so on.

    Can anyone help?

    Many thanks

    Daithi

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Combined IF and LOOKUP functions - Help please!

    you can use a lookup or an IF

    =vlookup(A1, Range with description, 2, false)

    perhaps if you provide a sample spreadsheet - we can add the code

    or in C1 add

    =LOOKUP(A1,{1,2,3,4,5;"poor","Very poor","C","D"})

    not as flexible as a table using vlookup or index match - as you can change the return values in the table , rather than change formulas
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Combined IF and LOOKUP functions - Help please!

    =CHOOSE(H10,"Good","Bad","Wose")

    Where h10 will be 1 to 3
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  4. #4
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Re: Combined IF and LOOKUP functions - Help please!

    Hi Guys,

    Many thanks for your replies.

    Attached is an example spread sheet for what I am trying to do.

    When I select a 'Score Awarded' from the drop down list in Cell H12 on Sheet 2, I want the box at Cell A16 (Sheet 2) to automatically populate with the Award Criteria 1 Justification outlined from Cells B3 - B8 on Sheet 1. e.g. if Cell H12 = 2 then Cell A16 looks up Cell B5 on Sheet 1.

    Help is much appreciated.

    Cheers

    Daithi
    Attached Files Attached Files
    Last edited by DaithiMacGiolla; 06-13-2014 at 10:18 AM.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Combined IF and LOOKUP functions - Help please!

    no sample attached

  6. #6
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Re: Combined IF and LOOKUP functions - Help please!

    Attached now.

    Apologies.
    Last edited by DaithiMacGiolla; 06-13-2014 at 10:25 AM.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Combined IF and LOOKUP functions - Help please!

    your using a few merged sells so not sure where H2 is or A16 as its all merged

    BUT you can use vlookup

    =vlookup( cell with the number in, Sheet1!A3:B8, 2, false)
    change the sheet1 to the actual nake used in the sheet - if you have spaces then use '

    'sheet with spaces'!A3:B8

    =vlookup( H2, 'Input Parameters'!A3:B8, 2, false)

  8. #8
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Re: Combined IF and LOOKUP functions - Help please!

    Thanks for this Etaf.

    It doesn't seem to be working.

    The drop down list will give a range of numbers from 0 - 5. These are the Score Awarded.

    What I want to do is that if I enter 0 from the drop down list, it will fill the box starting at Cell A16 to populate with the text outlined in Cell B3.
    If I enter 1 from the drop down list it will fill the box starting at Cell A16 with the text in Cell B4.
    If I enter 2 then Cell B5
    3 = B6
    4 = B7
    5 = B8.

    Does that make sence?

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Combined IF and LOOKUP functions - Help please!

    yep, thats what the formula was trying to do

    Look down column A3:A8 and match the value 0-5 and then look at the column B and return the adjacent value
    for example
    in A6 you have the number 3
    and B6 has Good - Good response that demonstrates basic knowledge and understanding of client's objectives, and gives confidence that supplier has adoped sufficent approaches

    and so if you had 3 in the cell H2
    in the Cell A16 then with the formula
    it would look up 3 and display the text in B6

    but your sample had lots of merged cells and H2 - does not exist as its merged into a2

    perhaps you could show the sample and highlight the cell with the dropdown and the cell the result is required

  10. #10
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Combined IF and LOOKUP functions - Help please!

    see my sample sheet1
    cells A7 and B7

    A7 has the drop down - change that and the text appears in b7
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Re: Combined IF and LOOKUP functions - Help please!

    I now got it to work.

    Thank you so much for your help.

    Expect a few more posts in the near future!
    Last edited by DaithiMacGiolla; 06-13-2014 at 11:21 AM.

  12. #12
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Combined IF and LOOKUP functions - Help please!

    your welcome

    FYI - merged cells are difficult to get formulas working in

    you can format and centre over a range

    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

+ 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. Can sumif and Max functions combined into one?
    By ReconMan in forum Excel General
    Replies: 4
    Last Post: 09-20-2011, 11:29 AM
  2. Can the IF and VLOOKUP functions be combined?
    By WG1 in forum Excel General
    Replies: 3
    Last Post: 08-29-2009, 06:58 AM
  3. SUMPRODUCT combined with other functions
    By tweety127 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2008, 12:30 PM
  4. Combined Functions
    By fncuis in forum Excel General
    Replies: 4
    Last Post: 08-22-2005, 07:16 PM
  5. [SOLVED] combined two countif functions
    By Geoff in forum Excel General
    Replies: 2
    Last Post: 08-11-2005, 07:05 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