+ Reply to Thread
Results 1 to 5 of 5

Looking for Alternatives... Use nested IF AND? Or LOOKUP? Or ARRAY?

  1. #1
    Registered User
    Join Date
    01-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    61

    Looking for Alternatives... Use nested IF AND? Or LOOKUP? Or ARRAY?

    Well I have learned enough to be really dangerous, but still not enough to do this one properly. I got a suggestion on this from someone here but it still doesn't do what I need it to do. I have a column of counters that are collected at least once a week from a machine. The counters are not checked every day and when they are, it's not always the same day. But at least once a week. I need the adjacent column to look and see when the last instance of counter was recorded and subtract this day from that getting the difference between the 2. It was suggested to use an IF AND statement but that only went back a few days. I tried editing the formula but realized I can only nest 7 statements. So began looking at alternatives but so far haven't figured it out.

    thanks in advance for all your suggestions and help.

    counter formula testing.xlsx

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Looking for Alternatives... Use nested IF AND? Or LOOKUP? Or ARRAY?

    D18 then copied down: =IF(C18>0, C18-LOOKUP(2, 1/($C$17:$C17>0), $C$17:$C17), "")

    D26: =C17-SUM(D18:D24)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Looking for Alternatives... Use nested IF AND? Or LOOKUP? Or ARRAY?

    well thank-you again! for you assistance....
    D26 is not exactly what I was looking for.... (Communication error perhaps )
    I put in some values and while it is calculating correctly that isn't what I was looking for. notes in the attached file.

    counter formula testing.xlsx

  4. #4
    Registered User
    Join Date
    01-20-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Looking for Alternatives... Use nested IF AND? Or LOOKUP? Or ARRAY?

    got it thanks again...

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Looking for Alternatives... Use nested IF AND? Or LOOKUP? Or ARRAY?

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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