+ Reply to Thread
Results 1 to 3 of 3

Help with IF/ LOOKUP functions

  1. #1
    Registered User
    Join Date
    04-14-2014
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help with IF/ LOOKUP functions

    I have a problem where I need to be able to calculate filter life over multiple days the problem I'm having is that the filters are lasting anywhere between 1 and 13 days.

    Is there a way in which I could use a lookup formula to sum the flow treated per filter even if the number of days between filter changes is different?

    In the attached spreadsheet I've used an IF function (in column D) cell D3 reads =IF(C3=1,(B3-B2),"") but have to manually change the values for column B depending on the number of days the filter is lasting

    Book1.xlsx

    Would a LOOKUP function be suitable for this but not sure how that would look like?

    I'm hoping that someone may be able to help make this more automated

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Help with IF/ LOOKUP functions

    welcome to the forum, eilzmillar. try in D3:
    =IF(C3=1,(B3-LOOKUP(2,1/(B$2:B2<>""),B$2:B2)),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    04-14-2014
    Location
    Scotland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help with IF/ LOOKUP functions

    Thanks Benishiryo

    That works great!

+ 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. Lookup functions
    By simran555 in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 09-02-2013, 07:39 AM
  2. Combining multiple functions>lookup/sum functions
    By mush106 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-22-2013, 07:47 AM
  3. [SOLVED] Help with multiple IF functions and possible lookup functions.
    By englishfellow in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-29-2013, 01:49 PM
  4. lookup functions
    By soph in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. [SOLVED] Lookup functions
    By Fiona in forum Excel General
    Replies: 1
    Last Post: 03-07-2005, 06:06 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