+ Reply to Thread
Results 1 to 8 of 8

Input result when 2 cells conditions are met

  1. #1
    Registered User
    Join Date
    03-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    67

    Input result when 2 cells conditions are met

    I have a hard time trying to set 2 conditions to show up a result.

    Account number (C1 to Z): it has 11 digits
    Code (F1 to Z): Usually, it started with "001-", but can be 002-, 003-, 898-, etc

    Conditions:
    ----------------------------------------------------------
    1. If there is "something" in the range C2 to Z
    AND
    2. If the range F2 to Z start with"001-" inclusively

    Then Range H2 to Z will have CONFIRMED as result (True). False is "blank".

    ----------------------------------------------------------

    Can anyone help please? Thanks
    Report.xlsx
    Last edited by jamewoong; 12-17-2015 at 11:31 PM.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Input result when 2 cells conditions are met

    Hi

    Can you clarify wath is range C2 to Z? or C2:Z2?

    But if it is C2:Z2 then H2 as parte of that range (circular reference)

    Regards

  3. #3
    Registered User
    Join Date
    07-01-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Input result when 2 cells conditions are met

    hi..

    please check below formula

    =AND(NOT(ISBLANK(C2)),(LEFT(F2,4)="001-"))

    best regards,
    JRD

  4. #4
    Registered User
    Join Date
    03-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Input result when 2 cells conditions are met

    Quote Originally Posted by José Augusto View Post
    Hi

    Can you clarify wath is range C2 to Z? or C2:Z2?

    But if it is C2:Z2 then H2 as parte of that range (circular reference)

    Regards
    Hi Jose,

    I apologize for the confusion. C2 to Z means from Range C2 to until there is no item (i.e C2, C3, C4....)

    JR, you code is what I expected, but is there a way to input CONFIRMED as TRUE and "blank" as FALSE as result instead of just TRUE/FALSE?

    Thanks guys

  5. #5
    Registered User
    Join Date
    03-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Input result when 2 cells conditions are met

    Quote Originally Posted by José Augusto View Post
    Hi

    Can you clarify wath is range C2 to Z? or C2:Z2?

    But if it is C2:Z2 then H2 as parte of that range (circular reference)

    Regards
    Hi Jose,

    I apologize for the confusion. C2 to Z means from Range C2 to until there is no item (i.e C2, C3, C4....)

    JR, your code is what I expected, but is there a way to input CONFIRMED as TRUE and "blank" as FALSE as result instead of just TRUE/FALSE?

    Thanks guys

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Input result when 2 cells conditions are met

    =if(and(c2<>"",left(f2,3)="001"),"confirmed","")
    Quang PT

  7. #7
    Registered User
    Join Date
    03-23-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Input result when 2 cells conditions are met

    Quote Originally Posted by bebo021999 View Post
    =if(and(c2<>"",left(f2,3)="001"),"confirmed","")
    How about the opposite?

    1. If there is "something" in the range C2 to Z
    AND
    2. If the range F2 to Z is other than "001-"

    Then Range H2 to Z will have CONFIRMED as result (True). False is "blank".

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Input result when 2 cells conditions are met

    Adjust left(f2,3)="001" to left(f2,3)<>"001"

+ 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. Plot result from various input in one cell affecting other cells
    By daolo in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 12-12-2014, 09:20 AM
  2. [SOLVED] if condition excel formula from 4 cells values result as of conditions of two cells
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2013, 06:25 AM
  3. [SOLVED] Formula that gives result if at least 3 of 5 conditions met
    By robmc in forum Excel General
    Replies: 5
    Last Post: 07-23-2012, 06:59 PM
  4. Replies: 2
    Last Post: 04-26-2011, 11:10 AM
  5. please help, result should meet two conditions
    By IvicaOS in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 12-10-2009, 07:57 AM
  6. two conditions and one result
    By rmat in forum Excel General
    Replies: 5
    Last Post: 08-19-2009, 02:49 PM
  7. Get a result based on several different conditions
    By QUIZZLE in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-20-2009, 11:35 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