Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Index, Vlookup, Offset

I have the following raw data setup:

Invoice# Date Description Amount
2007-1 4/1/07 Signage 250.00
2007-1 4/1/07 Mugs 115.00
2007-2 4/2/07 Signage 275.00

In a summary sheet:

I would like to pull the first "Date" for "Invoice#" 2007-1 on line 1.
If Invoice# 2007-1 has a second record, I would like to then pull the second
"Date" for "Invoice#" 2007-1 on line 2.

Thank you in advance for your help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Index, Vlookup, Offset

For the first date:

Summary sheet A1 = 2007-1

=VLOOKUP(A1,Sheet1!A2:D10,2,0)

For the second date (note: this formula will return the date corresponding
to the *LAST INSTANCE* of 2007-1. If there are only 2 instances it will
return the second instance. If there are 10 instances it will return the
10th instance)

=LOOKUP(2,1/(Sheet1!A2:A10=A1),Sheet1!B2:B10)

Both formula cells need to be formatted as DATE.

Biff

"Slider" wrote in message
...
I have the following raw data setup:

Invoice# Date Description Amount
2007-1 4/1/07 Signage 250.00
2007-1 4/1/07 Mugs 115.00
2007-2 4/2/07 Signage 275.00

In a summary sheet:

I would like to pull the first "Date" for "Invoice#" 2007-1 on line 1.
If Invoice# 2007-1 has a second record, I would like to then pull the
second
"Date" for "Invoice#" 2007-1 on line 2.

Thank you in advance for your help



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Index, Vlookup, Offset

Hi

Take a look at Debra Dalgleish's site for Advanced Filter, extracting
data to another sheet.
http://www.contextures.com/xladvfilter01.html#ExtractWs
--
Regards

Roger Govier


"Slider" wrote in message
...
I have the following raw data setup:

Invoice# Date Description Amount
2007-1 4/1/07 Signage 250.00
2007-1 4/1/07 Mugs 115.00
2007-2 4/2/07 Signage 275.00

In a summary sheet:

I would like to pull the first "Date" for "Invoice#" 2007-1 on line 1.
If Invoice# 2007-1 has a second record, I would like to then pull the
second
"Date" for "Invoice#" 2007-1 on line 2.

Thank you in advance for your help



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Index, Vlookup, Offset

Found a solution that would work in discussion history. Thank you to those
that replied to the post.



Perhaps this could be an option ..

Source data in Sheet1's cols A and B, from row2 down

In Sheet2,
Assume Store # will be input in B1

In A2:
=IF(Sheet1!A2="","",IF(Sheet1!A2=$B$1,ROW(),""))
Leave A1 empty

In B2:
=IF(ROW(A1)COUNT(A:A),"",INDEX(Sheet1!B:B,SMALL(A :A,ROW(A1))))
Select A2:B2, copy down to cover the max expected extent of data in Sheet1.
Hide away col A. Col B returns the required results all neatly bunched at the
top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik


"Slider" wrote:

I have the following raw data setup:

Invoice# Date Description Amount
2007-1 4/1/07 Signage 250.00
2007-1 4/1/07 Mugs 115.00
2007-2 4/2/07 Signage 275.00

In a summary sheet:

I would like to pull the first "Date" for "Invoice#" 2007-1 on line 1.
If Invoice# 2007-1 has a second record, I would like to then pull the second
"Date" for "Invoice#" 2007-1 on line 2.

Thank you in advance for your help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
index match offset? denise Excel Worksheet Functions 10 July 4th 06 04:28 AM
Want to offset found value using Index Doug Laidlaw Excel Worksheet Functions 2 December 9th 05 01:02 PM
Lookup, Index or Offset reno Excel Discussion (Misc queries) 1 October 6th 05 12:06 AM
Index, Match, Offset? Not sure which to use Ms. P. Excel Worksheet Functions 4 July 29th 05 11:04 PM
Which to use - if, vlookup, match, index, offset, vba? punsterr Excel Discussion (Misc queries) 3 June 7th 05 07:42 PM


All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"