Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Match Function

Hi,
I have put together a spreadsheet to find codes, states, descriptions. It
finds the data by dates.
Columns a Dates, Codes, States, Descriptions
If I put in a date it matches the code, state and description.

My problem is that if I have 2 dates that are the same it will only match
the first date it can find. What kind of formula do I need so that it will
output the second or third date data.

Thanks for your help.
If you need a copy of the spreadsheet please let me know.

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Match Function

How many rows of data do you have?

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Hi,
I have put together a spreadsheet to find codes, states, descriptions. It
finds the data by dates.
Columns a Dates, Codes, States, Descriptions
If I put in a date it matches the code, state and description.

My problem is that if I have 2 dates that are the same it will only match
the first date it can find. What kind of formula do I need so that it
will
output the second or third date data.

Thanks for your help.
If you need a copy of the spreadsheet please let me know.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Match Function

Lots - over 300 at the moment and it gets added to all the time.

"T. Valko" wrote:

How many rows of data do you have?

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Hi,
I have put together a spreadsheet to find codes, states, descriptions. It
finds the data by dates.
Columns a Dates, Codes, States, Descriptions
If I put in a date it matches the code, state and description.

My problem is that if I have 2 dates that are the same it will only match
the first date it can find. What kind of formula do I need so that it
will
output the second or third date data.

Thanks for your help.
If you need a copy of the spreadsheet please let me know.




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Match Function

One way...

Assume your data is in the range A2:D500

F2:H2 = headers: Code, State, Description

F1 = lookup date

Enter this formula in G1. This will return the count of dates based on the
date entered in cell F1:

=COUNTIF(A:A,F1)

Enter this array formula** in F3:

=IF(ROWS(F$3:F3)<=$G$1,INDEX(B$2:B$500,SMALL(IF($A $2:$A$500=$F$1,ROW(B$2:B$500)),ROWS(F$3:F3))-ROW(B$2)+1),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Copy across to H3 then down to a number of rows that ensures you get all the
results. How many rows that is depends on the maximum count for any single
date. For example, if 1/1/2009 appears the most times, let's say it appears
5 times, then you need to copy the formula to at least 5 rows.

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Lots - over 300 at the moment and it gets added to all the time.

"T. Valko" wrote:

How many rows of data do you have?

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Hi,
I have put together a spreadsheet to find codes, states, descriptions.
It
finds the data by dates.
Columns a Dates, Codes, States, Descriptions
If I put in a date it matches the code, state and description.

My problem is that if I have 2 dates that are the same it will only
match
the first date it can find. What kind of formula do I need so that it
will
output the second or third date data.

Thanks for your help.
If you need a copy of the spreadsheet please let me know.






  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Match Function

I put the formulas in and the count works but the second formula gives me a
#Value Error.

"T. Valko" wrote:

One way...

Assume your data is in the range A2:D500

F2:H2 = headers: Code, State, Description

F1 = lookup date

Enter this formula in G1. This will return the count of dates based on the
date entered in cell F1:

=COUNTIF(A:A,F1)

Enter this array formula** in F3:

=IF(ROWS(F$3:F3)<=$G$1,INDEX(B$2:B$500,SMALL(IF($A $2:$A$500=$F$1,ROW(B$2:B$500)),ROWS(F$3:F3))-ROW(B$2)+1),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Copy across to H3 then down to a number of rows that ensures you get all the
results. How many rows that is depends on the maximum count for any single
date. For example, if 1/1/2009 appears the most times, let's say it appears
5 times, then you need to copy the formula to at least 5 rows.

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Lots - over 300 at the moment and it gets added to all the time.

"T. Valko" wrote:

How many rows of data do you have?

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Hi,
I have put together a spreadsheet to find codes, states, descriptions.
It
finds the data by dates.
Columns a Dates, Codes, States, Descriptions
If I put in a date it matches the code, state and description.

My problem is that if I have 2 dates that are the same it will only
match
the first date it can find. What kind of formula do I need so that it
will
output the second or third date data.

Thanks for your help.
If you need a copy of the spreadsheet please let me know.









  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default Match Function

Did you array enter it as suggested?

--
__________________________________
HTH

Bob

"Melanie" wrote in message
...
I put the formulas in and the count works but the second formula gives me a
#Value Error.

"T. Valko" wrote:

One way...

Assume your data is in the range A2:D500

F2:H2 = headers: Code, State, Description

F1 = lookup date

Enter this formula in G1. This will return the count of dates based on
the
date entered in cell F1:

=COUNTIF(A:A,F1)

Enter this array formula** in F3:

=IF(ROWS(F$3:F3)<=$G$1,INDEX(B$2:B$500,SMALL(IF($A $2:$A$500=$F$1,ROW(B$2:B$500)),ROWS(F$3:F3))-ROW(B$2)+1),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

Copy across to H3 then down to a number of rows that ensures you get all
the
results. How many rows that is depends on the maximum count for any
single
date. For example, if 1/1/2009 appears the most times, let's say it
appears
5 times, then you need to copy the formula to at least 5 rows.

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Lots - over 300 at the moment and it gets added to all the time.

"T. Valko" wrote:

How many rows of data do you have?

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Hi,
I have put together a spreadsheet to find codes, states,
descriptions.
It
finds the data by dates.
Columns a Dates, Codes, States, Descriptions
If I put in a date it matches the code, state and description.

My problem is that if I have 2 dates that are the same it will only
match
the first date it can find. What kind of formula do I need so that
it
will
output the second or third date data.

Thanks for your help.
If you need a copy of the spreadsheet please let me know.









  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 78
Default Match Function

I have now. And it is now working.
Thank you so much for all your help.

"Bob Phillips" wrote:

Did you array enter it as suggested?

--
__________________________________
HTH

Bob

"Melanie" wrote in message
...
I put the formulas in and the count works but the second formula gives me a
#Value Error.

"T. Valko" wrote:

One way...

Assume your data is in the range A2:D500

F2:H2 = headers: Code, State, Description

F1 = lookup date

Enter this formula in G1. This will return the count of dates based on
the
date entered in cell F1:

=COUNTIF(A:A,F1)

Enter this array formula** in F3:

=IF(ROWS(F$3:F3)<=$G$1,INDEX(B$2:B$500,SMALL(IF($A $2:$A$500=$F$1,ROW(B$2:B$500)),ROWS(F$3:F3))-ROW(B$2)+1),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

Copy across to H3 then down to a number of rows that ensures you get all
the
results. How many rows that is depends on the maximum count for any
single
date. For example, if 1/1/2009 appears the most times, let's say it
appears
5 times, then you need to copy the formula to at least 5 rows.

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Lots - over 300 at the moment and it gets added to all the time.

"T. Valko" wrote:

How many rows of data do you have?

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Hi,
I have put together a spreadsheet to find codes, states,
descriptions.
It
finds the data by dates.
Columns a Dates, Codes, States, Descriptions
If I put in a date it matches the code, state and description.

My problem is that if I have 2 dates that are the same it will only
match
the first date it can find. What kind of formula do I need so that
it
will
output the second or third date data.

Thanks for your help.
If you need a copy of the spreadsheet please let me know.










  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Match Function

Glad you got it straightened out! Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
I have now. And it is now working.
Thank you so much for all your help.

"Bob Phillips" wrote:

Did you array enter it as suggested?

--
__________________________________
HTH

Bob

"Melanie" wrote in message
...
I put the formulas in and the count works but the second formula gives
me a
#Value Error.

"T. Valko" wrote:

One way...

Assume your data is in the range A2:D500

F2:H2 = headers: Code, State, Description

F1 = lookup date

Enter this formula in G1. This will return the count of dates based on
the
date entered in cell F1:

=COUNTIF(A:A,F1)

Enter this array formula** in F3:

=IF(ROWS(F$3:F3)<=$G$1,INDEX(B$2:B$500,SMALL(IF($A $2:$A$500=$F$1,ROW(B$2:B$500)),ROWS(F$3:F3))-ROW(B$2)+1),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

Copy across to H3 then down to a number of rows that ensures you get
all
the
results. How many rows that is depends on the maximum count for any
single
date. For example, if 1/1/2009 appears the most times, let's say it
appears
5 times, then you need to copy the formula to at least 5 rows.

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Lots - over 300 at the moment and it gets added to all the time.

"T. Valko" wrote:

How many rows of data do you have?

--
Biff
Microsoft Excel MVP


"Melanie" wrote in message
...
Hi,
I have put together a spreadsheet to find codes, states,
descriptions.
It
finds the data by dates.
Columns a Dates, Codes, States, Descriptions
If I put in a date it matches the code, state and description.

My problem is that if I have 2 dates that are the same it will
only
match
the first date it can find. What kind of formula do I need so
that
it
will
output the second or third date data.

Thanks for your help.
If you need a copy of the spreadsheet please let me know.












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
find the second match using the match function Ray Excel Worksheet Functions 1 April 6th 09 10:19 PM
how can we get unique values in match function for same match key. Xcel[_2_] Excel Worksheet Functions 11 December 7th 07 08:13 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Match as well as does not match array function Vikram Dhemare Excel Discussion (Misc queries) 7 April 25th 06 09:15 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM


All times are GMT +1. The time now is 01:41 AM.

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"