+ Reply to Thread
Results 1 to 12 of 12

Concatenate & Nested if statements??

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Concatenate & Nested if statements??

    I have two columns of formula's that I then concatenate the results into a third formula. Is there any way to combine these formula's into one?

    Formula 1: =IF(G6="","",IF(F6="",C5,F6))
    Formula 2: =IF(G6="","",IF(E6="",B5,E6))
    Formula 3: =CONCATENATE(B6," ",C6)

    Thank you to anyone that can help me out.
    Attached Files Attached Files

  2. #2
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Concatenate & Nested if statements??

    That would mean the final output should either be Off premise or on premise, right?




    If I was able to help – PLEASE DO NOT FORGET to Click the small star icon at the bottom left of my post.
    Thanks,

    Bonny Tycoon


  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Concatenate & Nested if statements??

    Yes for the first formula. The second formula will then show the Capt Moregan Rum Blk Spiced and the third formula would put the three together. However I apologize I failed to add that the second formula will have multiple results like On and Off Premise. There could be dozens of different products and those products could be sold on or off premise.

  4. #4
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Re: Concatenate & Nested if statements??

    Hi,

    Try this in A6

    Please Login or Register  to view this content.
    And then drag it further..




    If I was able to help – PLEASE DO NOT FORGET to Click the small star icon at the bottom left of my post.

  5. #5
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Concatenate & Nested if statements??

    I think we are close, but that is not quite it. I wanted to eliminate the other two columns altogether for the formula 1 & 2.

  6. #6
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Concatenate & Nested if statements??

    I've redone the spreadsheet to show multiple products.

    My goal is to show, in column A the name of the product from column E and the premise from column F. However I want to eliminate Column B & C so that Column A has the entire formula of the three currently.

    Formula 1: =IF(G6="","",IF(F6="",C5,F6))
    Formula 2: =IF(G6="","",IF(E6="",B5,E6))
    Formula 3: =CONCATENATE(B6," ",C6)

  7. #7
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Concatenate & Nested if statements??

    Try this

    =IF(G6="","",IF(E6="",B5,E6&" "&IF(F6="",C5,F6)))

  8. #8
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Concatenate & Nested if statements??

    Sorry that didn't work. It worked only on the first line product where the name was in column E6 but not in the lines below with nothing in E7,8,9, etc.

    I put your formula in A6. When I delete column B&C it makes everything below A6 a zero value.Concatenate & If Statement.xlsx

  9. #9
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Concatenate & Nested if statements??

    This one =IF(G6="","",IF(E6="",B5,E6&" "&IF(F6="",C5,F6))) work on my computer.

    To short it. Put in A6 =IF(E6="","",IF(C6="",A5,C6&" "&D6)) Then copy down

  10. #10
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Concatenate & Nested if statements??

    Concatenate & If Statement.xlsxOk I altered slightly to take away all the columns between the formula and my spreadsheet. The only problem now is that it does not change the "Premise" second part of the formula. It is changing the product name which is the first part of the formula however. Any chance we can get the second half to work?

    Attached is the updated file.

  11. #11
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Concatenate & Nested if statements??

    Can you try to explain to me what you trying to say about Off and on Premise?

  12. #12
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Concatenate & Nested if statements??

    Concatenate & If Statement.xlsxIn Cell C6 is the word Off Premise which I need in the formula. Everything below C6 until you get to C22 will be Off Premise but then in C22 it changes to On Premise for C22-C23 & C24.

    Your formula will change the value in column B when the product name changes, but it does not change Column C when it changes.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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