+ Reply to Thread
Results 1 to 4 of 4

Multiple if statements on range

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Multiple if statements on range

    hey all

    Having some issues with embedding multiple if statements into my formula. I am not sure if i should use sumproduct or another formula?

    basically, I have 4 classifications on a table A, B, C, D. I have sales and margin % for each customer. Based on where they fall on a grid, they are either A, B, C or D.

    A = sales > 30K ; margins >= 46%
    B = sales <= 30K ; margins >= 46%
    C = sales > 30K ; margins <= 45.99%
    D = sales <= 30K ; margins <= 45.99%

    My data is in the customer tab, and the table above is in tab called table.

    I have attached my worksheet. I am trying to get the formula to work in tab "customer" cell J11 and I will drag formula down.

    pls help!!!
    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 (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,871

    Re: Multiple if statements on range

    I believe the first answer should be B:

    =IF(N11>30000,IF(AE11<0.46,"C","A"),IF(AE11<0.46,"D","B"))
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Multiple if statements on range

    That is a nice analysis of the criteria by AliGW separating the criteria by greater than 30K and the other criteria being less than 46%.
    Without that, you would be left with something like this which does work but is greatly longer.
    Formula: copy to clipboard
    =IF(AND(N11>=30000,AE11>=0.46),"A",IF(AND(N11<=30000,AE11>=0.46),"B",IF(AND(N11>=30000,AE11<0.46),"C",IF(AND(N11<=30000,AE11<0.46),"D",""))))


    Good going AliGW
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,871

    Re: Multiple if statements on range

    Thanks for the rep!

    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. [SOLVED] Multiple range statements in code
    By Phil Hageman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2015, 08:54 AM
  2. Replies: 9
    Last Post: 05-30-2014, 02:02 PM
  3. Formula with multiple IF statements and IF AND statements
    By lottidotti in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-14-2013, 08:03 AM
  4. [SOLVED] Multiple IF Statements with < and > functions for range of values
    By clicky555 in forum Excel General
    Replies: 3
    Last Post: 08-02-2012, 07:12 PM
  5. Multiple nested IF statements and AND statements
    By TonyGetz in forum Excel General
    Replies: 2
    Last Post: 12-14-2010, 03:07 AM
  6. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  7. Multiple "IF" statements every cell in range
    By cbrd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2006, 10: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