+ Reply to Thread
Results 1 to 11 of 11

Check a series of cells with IF function

  1. #1
    Registered User
    Join Date
    01-08-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    14

    Check a series of cells with IF function

    Dear Kind Experts,
    I need help, appreciate your kind assistance.

    Target cell is C18.
    First I need to check if a cell D12 contain the words "Ribbon Tape Sheet", if True than do the below 2nd check, if False just ignore/blank.
    Secondly if I wants to check a series of cells, example C16 to F16 (or more C16 to M16), whether their value is less than 320 (<320). If any of the cells is less than 320, if True to list a word "Warning", if False will be blank.

    How should my formula be? Attached is the sample XL.

    Thank you!

    sample xl.jpg
    Attached Files Attached Files
    Last edited by DTYS; 10-07-2015 at 05:48 AM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Check a series of cells with IF function

    Hi DTYs,

    It will be better if you can upload a sample XL with desired result.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    01-08-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    14

    Re: Check a series of cells with IF function

    Quote Originally Posted by shukla.ankur281190 View Post
    Hi DTYs,

    It will be better if you can upload a sample XL with desired result.
    Hi Shukla,
    Ok, I have revised and updated my above initial post. Thanks.

  4. #4
    Forum Contributor
    Join Date
    04-15-2015
    Location
    beirut
    MS-Off Ver
    2010
    Posts
    107

    Re: Check a series of cells with IF function

    See this file
    Attached Files Attached Files

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Check a series of cells with IF function

    Quote Originally Posted by DTYS View Post
    Hi Shukla,
    Ok, I have revised and updated my above initial post. Thanks.
    Try this.

    C18=IF(D12="Ribbon Tape Sheet","",IF(OR(INDEX(C16:H16<320,)),"WARNING",""))

    But you have merged cells which will be become an issue with above formula.
    Last edited by shukla.ankur281190; 10-07-2015 at 06:08 AM.

  6. #6
    Registered User
    Join Date
    01-08-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    14

    Re: Check a series of cells with IF function

    Quote Originally Posted by shukla.ankur281190 View Post
    Try this.

    C18=IF(D12="Ribbon Tape Sheet","",IF(OR(INDEX(C16:H16<320,)),"WARNING",""))

    But you have merged cells which will be become an issue with above formula.
    Hi Shukla,
    Tried, but it does not work. Thanks.

  7. #7
    Registered User
    Join Date
    01-08-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    14

    Re: Check a series of cells with IF function

    Quote Originally Posted by salim ali View Post
    See this file
    Hi Salim,
    Thanks.
    Firstly, I need/prefer the 2x checking or formula to be in a single target cell.

    Secondly, test your XL, the formula unable to detect correctly. See below snap-shot, it never detect "H2" which is smaller than "296".

    example 2.jpg

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Check a series of cells with IF function

    =IF(D12="Ribbon Tape Sheet",IF(COUNTIF(C16:H16,"<296"),"WARNING",""))
    Please Login or Register  to view this content.
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Check a series of cells with IF function

    try this one
    C18=IF(D12="Ribbon Tape Sheet",IF(OR(INDEX(C16:H16<320,)),"WARNING",""))

  10. #10
    Registered User
    Join Date
    01-08-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    14

    Re: Check a series of cells with IF function

    Quote Originally Posted by nflsales View Post
    =IF(D12="Ribbon Tape Sheet",IF(COUNTIF(C16:H16,"<296"),"WARNING",""))
    Please Login or Register  to view this content.
    Try this
    Hi nflsales,

    It works, thank you!

  11. #11
    Registered User
    Join Date
    01-08-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    14

    Re: Check a series of cells with IF function

    Quote Originally Posted by shukla.ankur281190 View Post
    try this one
    C18=IF(D12="Ribbon Tape Sheet",IF(OR(INDEX(C16:H16<320,)),"WARNING",""))
    Thanks Shukla, nflsales formula works.

+ 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. Help inputting a function into a series of cells in Visual Basic
    By Rosadocc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2012, 11:36 AM
  2. [SOLVED] How to check if a cell is part of a series of cells (not a neat ra
    By JeKaRe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2006, 02:30 PM
  3. How to check if a cell is part of a series of cells (not a neat ra
    By JeKaRe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:35 PM
  4. RE: How to check if a cell is part of a series of cells (not a neat ra
    By tdw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:32 PM
  5. [SOLVED] How to check if a cell is part of a series of cells (not a neat ra
    By JeKaRe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 12:32 PM
  6. [SOLVED] What function will check a row for a series of specific numbers?
    By PuzzledK in forum Excel General
    Replies: 1
    Last Post: 05-11-2005, 05:06 PM

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