+ Reply to Thread
Results 1 to 6 of 6

IF b = Matches then type a word in c

  1. #1
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    IF b = Matches then type a word in c

    So..

    if b1 = 1 then paste adam in c1
    if b2 = 7 then paste kris in c2
    if b3 = 3 then paste scott in c3
    if b4 = 6 then paste jamie in b4

    and so on...

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF b = Matches then type a word in c

    Your request is not clearly defined. For example are you wanting ONE formula that incorporates all those or do you just want, for example in C1 =IF(B1=1,"adam","")? then in C2 =IF(B2=7,"kris","") etc
    And the "and so on" leaves me wondering if we are supposed to guess at the pattern you are trying.
    A possible better route might be to put a small table elsewhere and do a vlookup against it.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: IF b = Matches then type a word in c

    Okay, sorry.

    So basically lets just stop it at b4

    so it does the following

    if b1 = 1 then paste adam in c1
    if b2 = 7 then paste kris in c2
    if b3 = 3 then paste scott in c3
    if b4 = 6 then paste jamie in b4

    no pattern required

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF b = Matches then type a word in c

    do you want a group of embedded ifs? this would be the embedded formula for all beginning in C1 =IF(B1=1,"adam",IF(B1=7,"kris",IF(B1=3,"scott",IF(B1=6,"jamie",""))))

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF b = Matches then type a word in c

    If your only options are those four and you don't want blanks then you would use this…
    =IF(B1=1,"adam",IF(B1=7,"kris",IF(B1=3,"scott","jamie")))

  6. #6
    Forum Contributor
    Join Date
    11-11-2010
    Location
    England
    MS-Off Ver
    Excel 2019
    Posts
    202

    Re: IF b = Matches then type a word in c

    thank you :-)

+ 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] find word(s) within text string that matches a list of keywords
    By ecc34_11 in forum Excel General
    Replies: 10
    Last Post: 07-11-2012, 06:04 AM
  2. [SOLVED] find first word within text string that matches from a list of keywords
    By exclusivebiz in forum Excel General
    Replies: 5
    Last Post: 04-13-2012, 03:29 PM
  3. Replies: 3
    Last Post: 06-21-2010, 10:55 AM
  4. [SOLVED] Excel will not let me type any characters....I can type in Word.
    By deholly in forum Excel General
    Replies: 1
    Last Post: 03-17-2006, 06:40 AM
  5. [SOLVED] Excel will not let me type any characters....I can type in Word.
    By deholly in forum Excel General
    Replies: 0
    Last Post: 03-17-2006, 06:25 AM

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