+ Reply to Thread
Results 1 to 9 of 9

multiple factor IF statement based on specific criteria

  1. #1
    Registered User
    Join Date
    02-11-2019
    Location
    toronto, canada
    MS-Off Ver
    2013
    Posts
    64

    multiple factor IF statement based on specific criteria

    Hi,

    It doesnt have to an "IF" statement is can be anything including a query or table but not a macro

    Essentially, on the spreadsheet attached there are 3 rows:

    1. the fuction should ONLY affect "Order"'s that are the same (column A)

    2. If "order"'s are the same the function will look at "Order type" (column C)

    3. Function will ensure "Not assigned" is changed if matching line within the chart is different

    I tried "=IF(AND(D3=D2,F2="Not assigned"),"Not assigned",F3)" but it doesnt work

    Please see spreadsheet its much easier to understand!

    Jeffrey
    Attached Files Attached Files
    Last edited by JPRICH16; 01-14-2021 at 02:17 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: multiple factor IF statement based on specific criteria

    So, if I understand you correctly, you want this formula in col C?
    But col C also contains entries?

    Also, your formula contains references to col D and F - but they (essentially) contain nothing - did you provide the correct file?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-11-2019
    Location
    toronto, canada
    MS-Off Ver
    2013
    Posts
    64

    Re: multiple factor IF statement based on specific criteria

    Yes essentially, if column A is matching then column C should match BUT if one is "not assigned" and the other is anything else the "not assigned" will change to the other

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: multiple factor IF statement based on specific criteria

    You can only have either an entry in a cell OR a formula, you cant have both.

  5. #5
    Registered User
    Join Date
    02-11-2019
    Location
    toronto, canada
    MS-Off Ver
    2013
    Posts
    64

    Re: multiple factor IF statement based on specific criteria

    It needs to be an IFS with 1 And and 2 OR statments I think that index matches A and C at all times, I just cant do it lol Im not expert enough!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: multiple factor IF statement based on specific criteria

    If you have entries in C, you cannot also have formulas there

  7. #7
    Registered User
    Join Date
    02-11-2019
    Location
    toronto, canada
    MS-Off Ver
    2013
    Posts
    64

    Re: multiple factor IF statement based on specific criteria

    if i do =IF(D6<>D5,G6,IF(AND(D6=D5,F5="Not assigned"),"Not assigned",F5)) and copy C into D so i can have it do nothing if not med, it works but only if the numbers are inorder and always has the change as the first one

  8. #8
    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,869

    Re: multiple factor IF statement based on specific criteria

    You seem to be ignoring the point made, and that is that you cannot have a formula and text entry in column C - it's one or the other.
    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.

  9. #9
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: multiple factor IF statement based on specific criteria

    Couldn't this be achieved with a simple AZ Sort?

+ 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. If Statement based on criteria in multiple columns
    By kobichu713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-09-2020, 06:19 AM
  2. Replies: 5
    Last Post: 09-23-2015, 04:26 AM
  3. Replies: 2
    Last Post: 06-26-2015, 06:04 AM
  4. [SOLVED] IF statement based on multiple criteria
    By bridge4444 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-15-2014, 10:37 AM
  5. [SOLVED] If statement based on multiple criteria
    By TomRet in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-24-2013, 11:11 AM
  6. [SOLVED] Need IF statement or Macro to make decision based on multiple criteria
    By weddica in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2013, 03:30 PM
  7. [SOLVED] Nested IF statement to return a value based on multiple criteria
    By harrydnyc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2011, 11:45 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