+ Reply to Thread
Results 1 to 9 of 9

Using and IF, Lookup and Find Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    07-14-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    5

    Using and IF, Lookup and Find Formula

    I am attempting to write a formula to rate and Look up a few text strings. The largest strinng looks like this: Windows 7 // Windows 8 // Windows 10
    but some of the text strings are a combination of all three IE. Windows 7 // Windows 8

    I would like the formula to return three different values Windows7=2 Windows 8=4, and Windows 10 =8
    If the string has all three then it should return the highest Value. Any suggestions for this?

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Using and IF, Lookup and Find Formula

    =IF(FIND("Windows 10",A1),8,IF(FIND("Windows 8",A1),4,IF(FIND("Windows 7",A1),2,"")))
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    07-14-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    5

    Re: Using and IF, Lookup and Find Formula

    Thank you for your help! This worked for only the ones that had all three Windows 7 // Windows 8 // Windows 10 but the ones like Windows XP // Windows 7 it returned # VALUE


    any trouble shooting suggestions for this?

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Using and IF, Lookup and Find Formula

    You only gave me three types in your original post. You'll need to include those in your list as well.



    =IF(FIND("Windows 10",B11),8,
        IF(FIND("Windows 8",B11),4,
        IF(FIND("Windows 7",B11),2,
        IF(FIND("Windows XP",B11),1,""))))

  5. #5
    Registered User
    Join Date
    07-14-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    5

    Re: Using and IF, Lookup and Find Formula

    and what if some of the cells are Blanks?

  6. #6
    Registered User
    Join Date
    07-14-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    5

    Re: Using and IF, Lookup and Find Formula

    Also says I have entered too many arguments when I add XP

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,184

    Re: Using and IF, Lookup and Find Formula

    Try this ...

    =LOOKUP(2,1/SEARCH({"*","XP","Windows 7","Windows 8","Windows 10"},A1&" "),{"","XP",2,4,8})

  8. #8
    Registered User
    Join Date
    07-14-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    5

    Re: Using and IF, Lookup and Find Formula

    AmAZING THANK YOU!!

  9. #9
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,184

    Re: Using and IF, Lookup and Find Formula

    You're welcome!

+ 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. [SOLVED] lookup / find formula
    By papasmurfuo9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2015, 05:27 AM
  2. [SOLVED] Lookup formula to find lowest value with variable lookup criteria
    By brharrii in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2015, 03:00 AM
  3. [SOLVED] Help with LOOKUP formula to find date
    By ExcelFailure in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-05-2013, 04:20 AM
  4. [SOLVED] Trouble with lookup/find formula
    By Tadpole in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2013, 12:26 AM
  5. try to find formula for Lookup Function
    By sighlent1 in forum Excel General
    Replies: 2
    Last Post: 07-21-2011, 04:51 PM
  6. Replies: 6
    Last Post: 09-21-2010, 10:36 PM
  7. [SOLVED] Can't find the right lookup formula for this
    By bankscl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2005, 02: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