ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Creating a list in Excel for a matching criteria (https://www.excelbanter.com/excel-programming/446192-creating-list-excel-matching-criteria.html)

zuber85

Creating a list in Excel for a matching criteria
 
Hi,

I hope someone can help me with this. Here is an example of my spreadsheet:

A B C D
1 01/07/2012 02/07/2012 03/07/2012
2 NAME
3 John H H
4 Gary H
5 Paul H H


Now what I would want to do is to be able to create a list of names for a given date where there is a H in the date cell, for example if my date was 02/07/2012 then the list will give me John and Gary and if the date was 03/07/2012 then it would only give me Paul.

I hope this makes sense.

Thanks in advance for any help.

Z

zuber85

Sorry the table didnt appear as I thought it would. So here it is again (ignore the dots)

.......A..................B....................... ..C..........................D
1.................01/07/2012............02/07/2012.............03/07/2012
2 NAME
3 John................H.........................H
4 Gary...........................................H
5 Paul................H............................. .........................H

Hope it works this time

James Ravenswood

Creating a list in Excel for a matching criteria
 
One way, either manually or via VBA, is to set AutoFilter for all the date columns. Pick a date and filter to hide blanks. Then copy the visible names in the first column and paste elsewhere.

[email protected]

Creating a list in Excel for a matching criteria
 
Here is solution:

=IF(INDIRECT("R" & ROW() & "C" & MATCH($F$1,$A$1:$E$1,0),0)="H",A3,"")


Paste this formula in Cells F3 with following conditions:

- F1 should contain date from your data
- F2 empty row
- Column E is blank
- Columns A:D should contain ur data


Hereunder is sample

A B C D E F
01-07-2012 02-07-2012 03-07-2012 03-07-2012

John H H
Gary H
Paul H H Paul

For any detail ping me or visit

[email protected]

Creating a list in Excel for a matching criteria
 
Here is solution:

=IF(INDIRECT("R" & ROW() & "C" & MATCH($F$1,$A$1:$E$1,0),0)="H",A3,"")


Paste this formula in Cells F3 with following conditions:

- F1 should contain date from your data
- F2 empty row
- Column E is blank
- Columns A:D should contain ur data


Hereunder is sample

A B C D E F
01-07-2012 02-07-2012 03-07-2012 03-07-2012

John H H
Gary H
Paul H H Paul

For any detail ping me or visit www.Excelolozy.com

zuber85

Quote:

Originally Posted by James Ravenswood (Post 1602245)
One way, either manually or via VBA, is to set AutoFilter for all the date columns. Pick a date and filter to hide blanks. Then copy the visible names in the first column and paste elsewhere.

Thanks, this might be a bit long winded for people.

zuber85

Quote:

Originally Posted by (Post 1602247)
Here is solution:

=IF(INDIRECT("R" & ROW() & "C" & MATCH($F$1,$A$1:$E$1,0),0)="H",A3,"")


Paste this formula in Cells F3 with following conditions:

- F1 should contain date from your data
- F2 empty row
- Column E is blank
- Columns A:D should contain ur data


Hereunder is sample

A B C D E F
01-07-2012 02-07-2012 03-07-2012 03-07-2012

John H H
Gary H
Paul H H Paul

For any detail ping me or visit www.Excelolozy.com

Thanks for this. This should work for now, Cheers


All times are GMT +1. The time now is 02:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com