+ Reply to Thread
Results 1 to 8 of 8

Using ROWS, Index and Match - out of my depth

  1. #1
    Registered User
    Join Date
    06-20-2015
    Location
    UK
    MS-Off Ver
    2007
    Posts
    7

    Using ROWS, Index and Match - out of my depth

    So, I've been using the formula below which works perfectly - however I need a very similar thing, but with a couple of changes, and I can't work it out.

    {=IF(ROWS(C$15:C15)>$G$7,"",INDEX(Pipeline!A$1:A$316,SMALL(IF(Pipeline!$A$1:$A$316>=$F$1,IF(Pipeline!$A$1:$A$316<=$H$1,ROW(Pipeline!$A$1:$A$316)-ROW(Pipeline!$A$1)+1)),ROWS(C$15:C15))))}

    Bit of background.

    It picks up information from another sheet (without the need to filter on the original sheet) and returns anything between the two dates. It's only particular columns that need to be displayed on this sheet.

    I want to do a couple of things slightly different in the formula.

    At the moment it picks up the date from column A, however I want it to pick up the date from V.
    I also want to "filter", without using the filter. There is another column with the words won and not won - I want it to pick up only those with "won"

    Also, the original information is subject to change, and, rows are added at the top row. which means the cells in bold move down a2 if one row has been added etc - I've been told about Indirect formula but cannot fathom how to make sure it keeps looking at a2, no matter how many rows are inserted.

    I've spent hours on this - and cannot work it out! Any help is much appreciated.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using ROWS, Index and Match - out of my depth

    Quote Originally Posted by Michael3011 View Post

    I want to do a couple of things slightly different in the formula.

    At the moment it picks up the date from column A, however I want it to pick up the date from V.
    I also want to "filter", without using the filter. There is another column with the words won and not won - I want it to pick up only those with "won"
    Is that in addition to the date criteria or do you want to eliminate the date criteria?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-20-2015
    Location
    UK
    MS-Off Ver
    2007
    Posts
    7

    Re: Using ROWS, Index and Match - out of my depth

    I'd like is to collect the date from v instead of a (under a different heading). The date is collected for something upon entry into the system (a) and then v is once the process is completed.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using ROWS, Index and Match - out of my depth

    Not sure I understand that.

    See if this does what you want:

    =IFERROR(INDEX(Pipeline!V:V,SMALL(IF((Pipeline!$A$1:$A$316>=$F$10)*(Pipeline!$A$1:$A$316<=$H$1)*(Pipeline!$B$1:$B$316="won"),ROW(Pipeline!$A$1:$A$316)),ROWS(C$15:C15))),"")

    Still array entered.

  5. #5
    Registered User
    Join Date
    06-20-2015
    Location
    UK
    MS-Off Ver
    2007
    Posts
    7

    Re: Using ROWS, Index and Match - out of my depth

    Fantastic. I'll try it when I get back to the laptop around 9:15. Thanks for your efforts - I'll keep my fingers crossed.
    Not sure why it starts with iferror - it hasn't been needed in the past? Either way, I'll trust you!
    Last edited by Michael3011; 08-17-2015 at 03:25 PM.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using ROWS, Index and Match - out of my depth

    IFERROR is a simpler way of error trapping.

    It replaces this:

    IF(ROWS(C$15:C15)>$G$7,"",

  7. #7
    Registered User
    Join Date
    06-20-2015
    Location
    UK
    MS-Off Ver
    2007
    Posts
    7

    Re: Using ROWS, Index and Match - out of my depth

    Arghhh - I've dragged the formula down around 200 cells (maximum returnable) but hadn't considered doing iferror in that position (not sure why) - thanks!!!

  8. #8
    Registered User
    Join Date
    06-20-2015
    Location
    UK
    MS-Off Ver
    2007
    Posts
    7

    Re: Using ROWS, Index and Match - out of my depth

    It works!!! I'll have chance to test it tomorrow but I think it looks great and works. The numbers finally match!!!!!
    Overjoyed. You sir, are my hero.

+ 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. Index Match Function? Ignore blank rows - (rows without values)
    By jgray in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-26-2015, 01:12 PM
  2. index match for rows and columns
    By lejanco in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-01-2014, 10:21 PM
  3. Index Match for rows
    By lejanco in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2014, 03:52 PM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. Sum Multiple Rows with an Index/Match
    By amartin575 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-20-2013, 06:13 AM
  6. [SOLVED] VBA for creating Index-Match every 2 rows where INDEX refer to a different column per row
    By bisaya789 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2012, 03:46 AM
  7. Index and Match for both columns and rows
    By sofib09 in forum Excel General
    Replies: 2
    Last Post: 12-08-2010, 03:29 PM

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