+ Reply to Thread
Results 1 to 6 of 6

IF/Then Question

Hybrid View

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    26

    IF/Then Question

    I'm not sure if this is possible. I'll put what I'd like to accomplish. I'd like to avoid using coding. Also if you think of an easier way, please let me know. I'm creating this log that tracks defects for my work. Each defect is associated by a number.

    So, for example:

    1: Miranda
    2: Verification
    3: Attitude

    Is there a way to make an If then statement where if a Cell is blank, then nothing appears, but if you type 1, then "Miranda" appears, if you then type 1, 2, then "Miranda" and "Verification" appears, and so on.

    Basically I need to be able to keep track of all of these defects and I want an easy way to do that without having to manually type them out each time. I hope this makes sense.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: IF/Then Question

    Look at the attached workbook.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    MN, USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: IF/Then Question

    I think i would try using a vlook up for most of the leg work here.

    Creat a table with your combinations
    1
    2
    1, 2
    3
    1,2,3
    ect.

    and in the column next to it put the response you want to see
    Miranda
    Verificaiton
    Miranda/Verification or Miranda & Verificaiton
    ect.

    then in the cell you want the respose and do a vlooup looking up the text you type in in the table you created(be sure to hit F4 when you highlight the table to lock it in place),2,false)

    If that works then just put an if statement in front of it to say if the cell is blank to return a blank if not then vlookup =if(A1="","",vlookup())

    Additionally I'd used data verification to set the type in box( 1 or 1,2) as restricted to drop down values just to ensure the vlookup works.

    Hope that helps.

  4. #4
    Registered User
    Join Date
    11-09-2012
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: IF/Then Question

    I have considered the VLOOKUP route, but I avoided that since the there is quite a few possibilites. There is 8 total, so you could have roughly 40,000 different combos.

  5. #5
    Registered User
    Join Date
    10-22-2013
    Location
    MN, USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: IF/Then Question

    Ya thats just a few more than i'd like to create.

    How about something like this =IF(ISERR(FIND("1",A1)),"","Miranda ")&IF(ISERR(FIND("2",A1)),"","Verificaiton ")....all they way thru your 8? Then you just have to decide how to seperate them if there are multiple values. I put a space at the end of the defect.

  6. #6
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: IF/Then Question

    Would this do what you need?
    Notes are in the workbook.
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

+ 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] Question regarding conditional format question that covers two range criteria
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2013, 12:32 PM
  2. Replies: 3
    Last Post: 06-17-2011, 08:09 AM
  3. Two question, numeric code question and subtraction of two columns?
    By mgsweden78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2008, 02:50 AM
  4. macro question and count question... thanks!
    By bstaff in forum Excel General
    Replies: 5
    Last Post: 02-07-2007, 10:12 AM
  5. [SOLVED] Newbie Question - Subtraction Formula Question
    By admiral_victory@iol.ie in forum Excel General
    Replies: 3
    Last Post: 05-05-2006, 12:55 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