Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I'm building a sheet that pulls data from another worksheet based on a customer number, so when I enter a customer number into cell it will pull specific information. The part I'm stuck on is this....There are varying numbers of rows below each customers' data depending on the number of years they have been a customer....one row per year, starting with the current year. I want to pull data for the pervious year, three years ago, five years ago and the first year they were a customer. The data looks like this: "Cust. #1" "Cust. Name" # Year Premium Losses Claims.....etc 1 2005 1000 50 1 2 2004 1500 10 2 3 2003 1500 0 0 4 2002 1500 15 1 5 2001 1500 15 1 6 2000 1500 10 1 7 1999 1500 0 0 "Cust. #2" "Cust. Name" # Year Premium Losses Claims.....etc 1 2005 500 50 1 2 2004 500 10 2 3 2003 500 0 0 4 2002 500 15 1 The column with the # and numbers is actually part of the data, not the Excel row number. So when I enter a customer number to look up, I need it to look at only the data for that customer and pull rows 1, 3, 5 and the last row, whatever it might be. Is this possible, or am I dreaming?? I hope that makes sense. Thanks, Dan |