+ Reply to Thread
Results 1 to 3 of 3

Thread: Array..I think??

  1. #1
    Valued Forum Contributor
    Join Date
    04-25-2006
    Posts
    215

    Array..I think??

    I have the following formula that is functioning correctly:

    OFFSET(B2,MATCH(LARGE(OFFSET(B3,0,MATCH(A1,B2:AF2,0)-1,1000,1),1),OFFSET(B2,0,MATCH(A1,B2:AF2,0)-1,1000,1),0)-3,MATCH(A1,B2:AF2,0)-1)

    The formula basically finds the date in A1 in the range B2:AF2, and then finds the largest number in that column and returns the cell 2 rows above.

    I need to expand on it and say if any of the cells in A3:A1001 contain the word "account" do not use the value found in that row to determing the LARGE number. The labels will be in the format account1, account2, etc..

    Any suggestions?

  2. #2
    Forum Guru
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    Posts
    1,250
    I think only a parent could love this formula - it's a bit hard to work out. My suggestion is to wrap everything you have got into an if statement

    Something like this


    =if(condition,Do if true, do if false) therefore
    =if(Account exists Y/N,Take the account answer,take the formula answer)(

  3. #3
    Forum Guru
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    What does contains account mean? If it just contains the word account, so not "account 1234"

    Perhaps the following entered as an array Sht ctrl then enter

    OFFSET(B2,MATCH(LARGE((OFFSET(B3,0,MATCH(A1,B2:AF2, 0)-1,1000,1),1)*(NOT(A3:A1002="account"))),OFFSET(B2,0,MATCH(A1,B2:AF2,0)-1,1000,1),0)-3,MATCH(A1,B2:AF2,0)-1)

    I hope thats correct

    In the sheet I sent you last time, I have amended it and it is in cell k6 and made it look 2 rows above. Hopefully you can adjust it for your needs, but I have not the time to check if the formula typed above works as I would have to recreate your sheet. but could with the one I created before, hence the attachment. As the previous poster said it is a bit hard to work out!

    Hope you get there, let me know

    regards

    Dav
    Attached Files Attached Files
    Last edited by Dav; 11-01-2006 at 06:55 AM.

+ 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.2.0