+ Reply to Thread
Results 1 to 8 of 8

Multi part if statement

  1. #1
    Forum Contributor
    Join Date
    02-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    191

    Multi part if statement

    Hi Everyone,

    I tried searching for this formula, but I can't seem to find it.

    Essentially I want to to create a formula that states =If(N1="Partial" OR "Full", concatenate(B1,c2),N/A)

    In English, if a certain cell contains the text partial or full, concatenate, if not output an error.

    Thanks for your help in advance!

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Multi part if statement

    try this

    Please Login or Register  to view this content.
    untested
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Multi part if statement

    @judgeh59

    just a small change in your formula:

    =IF(OR(N1={"Partial","Full"}), B1&C2, "OOPS")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor
    Join Date
    02-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    191

    Re: Multi part if statement

    Wow. Thanks for the help.

    This community is so helpful, learning tons.

    Creating a bit more of a complex formula would there by any way to address the "OOPS". Would there be a way to create a formula for this rather than multiple formulas. For instance, any time it isn't "partial" or "full", it is typically 1 of 3 possibilities:

    1. "Partial on abcdef"
    - I need to take a unique 6 alpha character phrase and concat it with C2
    - Therefore if it isn't solely Partial or Full, I could take the abcdef and concat it with C2

    2. "Full (1.11)"
    -I need to take the number in case it fails (OOPS) and concat it with B2

    3. "25.90 on abcdef, 141.91 on ghijkl, 903.03 on mnopqr"
    - For this example, I would need to concat the number and 6 alpha characters. 25.90abcdef

    Note: Dollar amounts can vary (be as little as a few cents) and for phase 3 it can be as much as 3 different concat's as little as 2 (90.90abcdef. 3222.90ghijkl)

    I don't know if it can be done, sounds very complex.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,989

    Re: Multi part if statement

    It would be easier if you could supply a sample workbook explaining your requirements.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    02-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    191

    Re: Multi part if statement

    Please find the doc attached. Hope that helps. Sample Doc.xlsx

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Multi part if statement

    Hi ,

    try This function

    Punnam
    Attached Files Attached Files

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Multi part if statement

    Maybe this one

    =IF(A2="",B2,IF(OR(ISNUMBER(SEARCH({"Full","Partial"},C2))),A2&"-"&B2,"N/A"))

+ 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. multi IF statement
    By red_jellybean in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2009, 02:37 PM
  2. Multi IF statement in a cell...
    By daowen in forum Excel General
    Replies: 3
    Last Post: 07-29-2009, 02:22 PM
  3. Replies: 0
    Last Post: 03-29-2009, 10:55 PM
  4. Multi-condition IF statement
    By smurray444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-26-2007, 01:57 PM
  5. Transferring part of a multi-dimensional array to a range in VBA
    By Bob J. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2005, 11:05 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