+ Reply to Thread
Results 1 to 5 of 5

Formula that checks 2 seperate cells and if criteria is met enter a figure in another cell

Hybrid View

  1. #1
    Registered User
    Join Date
    03-01-2014
    Location
    Stoke on Trent
    MS-Off Ver
    Excel 2019
    Posts
    35

    Formula that checks 2 seperate cells and if criteria is met enter a figure in another cell

    I have columns "A" with the month(Jan-Dec), column "B" with the date (1-31), column "C" with numbers 1-7, and column "D" with an increasing value (1-100)

    What i am trying to do is if Column B = 1(Date) and Column C=1 it will change column "D" to 1 or will continue with the increasing value. I already have the formula in "D" to increase the value (=D90+1)

    Can anyone help please.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,823

    Re: Formula that checks 2 seperate cells and if criteria is met enter a figure in another

    I would try this, if I understand you correctly. I assume the example formula you gave is in D91, and this would replace it:

    Formula: copy to clipboard
    =IF(AND(B91=1,C91=1),1,D90+1)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-01-2014
    Location
    Stoke on Trent
    MS-Off Ver
    Excel 2019
    Posts
    35

    Re: Formula that checks 2 seperate cells and if criteria is met enter a figure in another

    Quote Originally Posted by 6StringJazzer View Post
    I would try this, if I understand you correctly. I assume the example formula you gave is in D91, and this would replace it:

    Formula: copy to clipboard
    =IF(AND(B91=1,C91=1),1,D90+1)
    Thanks Jeff that worked fine. on another sheet i have a similar issue but C91 is text(Breakfast). if i replace (C91=1) with (C91=Breakfast) it does not work and i get a #NAME? Error. is there a formula to do this also.

  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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,536

    Re: Formula that checks 2 seperate cells and if criteria is met enter a figure in another

    Put the word breakfast into quotes - "breakfast".
    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.

  5. #5
    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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,536

    Re: Formula that checks 2 seperate cells and if criteria is met enter a figure in another

    Thanks for the rep.

+ 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. Replies: 10
    Last Post: 07-14-2015, 12:26 AM
  2. Replies: 0
    Last Post: 11-21-2014, 05:00 PM
  3. Replies: 4
    Last Post: 10-31-2014, 03:53 PM
  4. Seperate Values in single cell seperated by [alt+enter] into seperate cells
    By Coquito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2012, 04:24 PM
  5. [SOLVED] Loop to find cells based on criteria, enter formula into next empty column
    By cschoyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2012, 03:32 PM
  6. [SOLVED] Formula which checks whether a string is found in a range and checks 2 criteria
    By liranbo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2012, 05:28 PM
  7. Replies: 8
    Last Post: 06-20-2008, 08:01 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