+ Reply to Thread
Results 1 to 7 of 7

extend index/match

Hybrid View

  1. #1
    Registered User
    Join Date
    12-30-2008
    Location
    UK
    MS-Off Ver
    Excel 2000
    Posts
    4

    extend index/match

    I am trying to create a billing statement based on customer sales data, the named range SalesDayBook. I have managed the first entry using Index/Match but need to get subsequent entries if they exist. My formula will only get the first entry, any suggestions would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: extend index/match

    My approach would be to insert a column to left of your SalesDayBook range

    In the new column, cell A6 place this formula:

    =IF(C6='Billing Statement'!$E$7,1,"")

    In A7 place this formula and copy down:

    =IF(C7='Billing Statement'!$E$7,COUNT(A$6:A6)+1,"")

    You can now do VLOOKUP() formulas within your statement to find the 1,2 & 3 using a check on the number of times Joe Blogg appears by using a COUNTIF() function

  3. #3
    Registered User
    Join Date
    12-30-2008
    Location
    UK
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: extend index/match

    I was trying to use COUNTIF within the formula, but adding the column works.

    This is the formula that I have used to get the actual data after adding your suggestions.

    =IF(ISERROR(VLOOKUP(ROW(A17)-16,Sales!$A$5:$H$17,4,0)),"",VLOOKUP(ROW(A17)-16,Sales!$A$5:$H$17,4,0))

    I'll mark this solved later, just in case any other suggestions are forthcoming

    Thanks Cutter
    Last edited by want2learn; 01-09-2011 at 11:47 AM. Reason: amend formula

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: extend index/match

    Try this workbook

    I'm not sure about your sub totals, best check them.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: extend index/match

    want2learn

    This is what I had in mind for your date column on the statement sheet (and dragged down)

    =IF(COUNTIF(SalesDayBook,$E$7)>ROWS(A$17:A17)-1,VLOOKUP(ROWS(A$17:A17),SalesDayBook,4,0),"")

  6. #6
    Registered User
    Join Date
    12-30-2008
    Location
    UK
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: extend index/match

    Marcol

    I've used a template that I downloaded, hadn't checked the subtotals yet. Thanks for the input.

    Cutter

    That's similar to what I was working on, but I kept getting an error. The formula that I posted works, changing the reference columns, but I'll check yours out.

  7. #7
    Registered User
    Join Date
    12-30-2008
    Location
    UK
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: extend index/match

    Hi Cutter

    With some slight alterations I got your formula to work, I had to change the CountIf to only use one column of the table, not all of it. Thanks for your help

+ 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