+ Reply to Thread
Results 1 to 20 of 20

Using furthest down Cell for math statements

Hybrid View

ssword Using furthest down Cell for... 11-01-2010, 12:45 PM
NBVC Re: Using furthest down Cell... 11-01-2010, 01:00 PM
ssword Re: Using furthest down Cell... 11-01-2010, 03:07 PM
NBVC Re: Using furthest down Cell... 11-01-2010, 03:15 PM
ssword Re: Using furthest down Cell... 11-02-2010, 10:17 AM
NBVC Re: Using furthest down Cell... 11-02-2010, 01:16 PM
ssword Re: Using furthest down Cell... 11-02-2010, 05:07 PM
NBVC Re: Using furthest down Cell... 11-02-2010, 05:12 PM
ssword Re: Using furthest down Cell... 11-03-2010, 09:06 AM
NBVC Re: Using furthest down Cell... 11-03-2010, 09:25 AM
ssword Re: Using furthest down Cell... 11-03-2010, 11:48 AM
ssword Re: Using furthest down Cell... 11-03-2010, 01:19 PM
NBVC Re: Using furthest down Cell... 11-03-2010, 01:33 PM
ssword Re: Using furthest down Cell... 11-03-2010, 01:41 PM
NBVC Re: Using furthest down Cell... 11-03-2010, 01:57 PM
ssword Re: Using furthest down Cell... 11-03-2010, 02:46 PM
NBVC Re: Using furthest down Cell... 11-03-2010, 02:51 PM
ssword Re: Using furthest down Cell... 11-03-2010, 03:02 PM
NBVC Re: Using furthest down Cell... 11-03-2010, 03:08 PM
ssword Re: Using furthest down Cell... 11-03-2010, 04:31 PM
  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Using furthest down Cell for math statements

    I have printer toner usage sheet that has dates in a column I want it to reference the furthest one down to complete its job. I've attached an example excel file of what I've to to make it work but its dirty and doesn't work properly if the value changes to 100%, if I change the cartridge. For the most part what I have works but its terrible and difficult to alter.

    What I'm trying to get it to do is find the average Page Per Day printer from the top value OR if column C has a cell with 100%. Additionally, I need it to references the furthest cell down that isn't 0 or nothing to find out which date to use to figure replace by date and the toner empty date. I'm hoping for a more elegant solution that i'm currently using that is accurate even if the toner level goes up.
    Attached Files Attached Files
    Last edited by ssword; 11-03-2010 at 04:31 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    Try:

    =LOOKUP(2,1/(C19:C42<>0),B19:B42)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    Quote Originally Posted by NBVC View Post
    Try:

    =LOOKUP(2,1/(C19:C42<>0),B19:B42)
    that worked awesome for finding current position.
    Also, I can't figure out how to have it check for a 100% in the toner column. In which i haven't figure out a way to use it to weed out and not average anything past that point or start from that point depending on how many values occur after the 100%.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    Can you give examples of what kind of results you expect based on which conditions?

  5. #5
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    It needs to find the Pages Per Day using the average from "pages left" column and must check if the last value(furthest down) isn't greater than the cell above it.

    After that it should be easy to fill in the rest of the blanks.
    Last edited by ssword; 11-02-2010 at 10:50 AM.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    To get the average PPD use:

    =AVERAGEIF(G19:G42,"<>0")

    I am still unsure how you want to determine the Replace by date?

  7. #7
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    It'll do the following: (Pages Left - 200)/ppd

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    You mean?

    =(LOOKUP(2,1/(G19:G42<>0),G19:G42)-200)/K21

  9. #9
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    Quote Originally Posted by NBVC View Post
    You mean?

    =(LOOKUP(2,1/(G19:G42<>0),G19:G42)-200)/K21
    Correct, I didn't have my sheet on me at the time so i couldn't make the exact equation! Also, thanks for writing that for me because I hadn't got to it yet.
    Last edited by ssword; 11-03-2010 at 11:48 AM.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    If you are satisfied with the solution provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  11. #11
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    Fixed the following equations, the end result is:

    PPD =(G19-(LOOKUP(2,1/(C19:C42<>0),G19:G42)))/((LOOKUP(2,1/(C19:C42<>0),B19:B42)-B19))
    Replace By =((LOOKUP(2,1/(C19:C42<>0),B19:B42))+(LOOKUP(2,1/(G19:G42<>0),G19:G42)-200)/K21)
    Toner Empty =((LOOKUP(2,1/(C19:C42<>0),B19:B42))+(LOOKUP(2,1/(G19:G42<>0),G19:G42))/K21)

    Thank you for the assistance, i've never used the lookup command before and I think i'm use to it now.

  12. #12
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    Okay, found an issue with all of this. If I change a cartridge it doesn't try to reference the new value

    So, the question is in the PPD in the below equation how would i force the (G19-( portion to reference the last time it was equal to K24 OR G19? Also, this could be applied to the )-B19) portion as well.

    =(G19-(LOOKUP(2,1/(C19:C42<>0),G19:G42)))/((LOOKUP(2,1/(C19:C42<>0),B19:B42)-B19))

  13. #13
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    The last time what was equal to K24 or G19?

    Please elaborate what you are looking for...

  14. #14
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    I need it to look at the column and if the G column = K24(catridge page count) occurs it should use that value otherwise use G19.

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    Do you mean?

    =(IF(ISNUMBER(MATCH(K24,G19:G42,0)),K24,G19)-(LOOKUP(2,1/(C19:C42<>0),G19:G42)))/((LOOKUP(2,1/(C19:C42<>0),B19:B42)-IF(ISNUMBER(MATCH(K23,B19:B42,0)),K23,B19)))

  16. #16
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    Quote Originally Posted by NBVC View Post
    Do you mean?

    =(IF(ISNUMBER(MATCH(K24,G19:G42,0)),K24,G19)-(LOOKUP(2,1/(C19:C42<>0),G19:G42)))/((LOOKUP(2,1/(C19:C42<>0),B19:B42)-IF(ISNUMBER(MATCH(K23,B19:B42,0)),K23,B19)))
    Not quite, K23 isn't used to find the last time it was replace but when it is empty so those reference points don't lead to anything but circular logic. The K23 reference points in that equation need to change to some lookup that finds the position of the 100% that occurred.

  17. #17
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    So instead of K23 you want it to look at column B for when 100% last occurred... and if did not occur, then use B19. Is that right?

  18. #18
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    Quote Originally Posted by NBVC View Post
    So instead of K23 you want it to look at column B for when 100% last occurred... and if did not occur, then use B19. Is that right?
    I need it to look up column b and use the 100% value if it occurs otherwise use b19

  19. #19
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using furthest down Cell for math statements

    Perhaps:

    =(IF(ISNUMBER(MATCH(K24,G19:G42,0)),K24,G19)-(LOOKUP(2,1/(C19:C42<>0),G19:G42)))/((LOOKUP(2,1/(C19:C42<>0),B19:B42)-IF(ISNUMBER(MATCH(100%,C19:C42,0)),LOOKUP(2,1/(C19:C42=100%),B19:B42),B19)))

  20. #20
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Using furthest down Cell for math statements

    Quote Originally Posted by NBVC View Post
    Perhaps:

    =(IF(ISNUMBER(MATCH(K24,G19:G42,0)),K24,G19)-(LOOKUP(2,1/(C19:C42<>0),G19:G42)))/((LOOKUP(2,1/(C19:C42<>0),B19:B42)-IF(ISNUMBER(MATCH(100%,C19:C42,0)),LOOKUP(2,1/(C19:C42=100%),B19:B42),B19)))
    That worked perfectly. Thank you.

+ 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