+ Reply to Thread
Results 1 to 5 of 5

Further Branching of IF AND statement

  1. #1
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Further Branching of IF AND statement

    Hi All,

    I am trying to get the expected output in column G in the attached file...I want to basically branch out my result into Cost-Promo and Cost-Non promo based on the Promo column -Yes or blank ,Yes -meaning cost promo and blank meaning cost-non promo..Can you please help here...

    Thanks,
    Arun
    Attached Files Attached Files

  2. #2
    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
    79,333

    Re: Further Branching of IF AND statement

    Not sure this needed a new thread, but here you go:

    =IF(AND(B2>0.02,C2>0.02,B2=C2),"Cost"&IF(E2="Yes","-Promo","-Non Promo"),IF(AND(B2<0.02,C2<0.02),"Variation",IF(B2>C2,"Cost"&IF(E2="Yes","-Promo","-Non Promo"),"Freight")))
    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.

  3. #3
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Further Branching of IF AND statement

    Thanks Ali!...Thought that the additional problem would be a thing that would be helpful for other people who search for them..

  4. #4
    Forum Contributor
    Join Date
    10-18-2016
    Location
    Chicago, USA
    MS-Off Ver
    Office 365
    Posts
    220

    Re: Further Branching of IF AND statement

    Forgot to add the reputation star

  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
    79,333

    Re: Further Branching of IF AND statement

    Not really - it was just an addition to the original query, so would have been better with the original query, and your thread title this time is not going to be of any use to anyone doing a search, so it will go largely unnoticed.

    Not to worry.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Format Table in Branching Structure
    By snmegahan in forum Excel General
    Replies: 6
    Last Post: 07-26-2015, 10:57 PM
  2. [SOLVED] Stock branching , formula slow thus needed MACRO
    By makinmomb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2014, 06:07 AM
  3. Conditional branching in code
    By LaserMan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2014, 01:36 AM
  4. Branching Questionnaire
    By kingofbeans in forum Excel General
    Replies: 3
    Last Post: 08-10-2013, 07:42 PM
  5. [SOLVED] Error trapping and branching in a sub routine
    By orly_sm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2013, 04:16 AM
  6. Random Branching
    By 500bloc in forum Excel General
    Replies: 8
    Last Post: 01-28-2012, 05:00 PM
  7. Branching Drop Down Menu
    By tnvis in forum Excel General
    Replies: 1
    Last Post: 10-24-2005, 04:05 PM

Tags for this Thread

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