+ Reply to Thread
Results 1 to 4 of 4

if formula for more than 7 lookups?

  1. #1
    Registered User
    Join Date
    05-16-2008
    Posts
    11

    if formula for more than 7 lookups?

    Hi All ~

    My question is: I have several cells [M5, M9, M13, M17, M21, M25, & M29] that subtract from various areas within my spreadsheet. When one of these cells reaches zero - all is good but when any of the cells go below zero I need to put a #1 in cell Q3. I tried the if formula but could only get it to work M5, 9, 13, & 17 and I also tried if(m5,-1,if(m9 ..... ect) by than I got -1 in Q3. I'm new to excel [tho I think this spreadsheet is trying to make me an expert!] so any help would be great - thanks again!

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try putting this in Q3
    =IF(MIN(M5,M9,M13,M17,M21,M25,M29)<0,1,"")

    rylo

  3. #3
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    See if this helps:

    In Q3:
    Please Login or Register  to view this content.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    Using a combination of the IF and OR functions, the following will put a 1 in Q3 if any of the mentioned cells in column M are less than zero, or else it will return a zero.

    HTH

    Robert

    =IF(OR(M5<0,M9<0,M13<0,M17<0,M21<0,M25<0,M29<0),1,0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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