View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gaurav[_2_] Gaurav[_2_] is offline
external usenet poster
 
Posts: 207
Default I have a DB of auction items sold, how can I create receipt?

Suppose your Customer number is in B1, you want the purchases in B3. In
Sheet1 you have customer numbers in Column A and Items Purchased in Column
D.

Enter this array formula in B3 and drag down till the time you get blank.

=IF(ROWS(B$3:B3)<=COUNTIF('Sheet1!D$1:D$100,B$1),I NDEX('Sheet1'!A$1:A$100,SMALL(IF('Sheet1'!D$1:D$10 0=B$1,ROW('Sheet1'!A$1:A$100)-MIN(ROW('Sheet1'!A$1:A$100))+1),ROWS(B$3:B3))),"")

Press CTRL+SHIFT+ENTER not just ENTER.

Thanks


"nwtf_vol" wrote in message
...
I have a list of auction items, and as they are sold I will be filling in
the
customer number next to the corresponding item (column headings are cust#
and
item description). I want to be able to create a receipt from this data.
I
have the receipt formatted and created. However, I am having trouble when
a
user has multiple purchases because when I look up the data, I always only
find the first entry for a specific customer in the list. I think I need
to
index the value some how, but I am not sure. Can someone help me out on
the
formula I will need to use to return the next value in the table? Thank
you,
I really appreciate the help.