Look up value and return multiple results

jakewatson

New Member
Joined
Jun 10, 2019
Messages
6
Hi Guys,

I'm hoping you can help me.... I'm trying to create a simple spreadsheet in excel to keep track of my daily conversations. I have the spreadsheet laid out horizontally which I guess is not ideal (I can transpose this if it makes life easier). I'm hoping to put the date in each week and return a list of that weeks conversations. It's looking up the date across multiple rows and columns that I'm having difficulty with. If I can return the results for that day I can replicate that into my weekly sheet. Hope the Example below makes sense?
Name BobSueFredJamesSarahMarkJohn
Account Number1234123512861295126712981288
Date05/05/201910/06/201904/05/201901/06/2019
Notefvfvfvfzfvzfvcbgnbggcnbbvncvbnchcfjlkdslflskd
Date07/05/201910/06/2019
Notefdsgvfbgfbnvkjlfnvlfnl
Date10/06/2019
Notenfjldsnvjsdfklnv
Results
10/06/2019 Bobnfjldsnvjsdfklnv
Suevcbgnbggc
Jamesnvkjlfnvlfnl

<colgroup><col span="5"><col span="3"></colgroup><tbody>
</tbody>

<tbody>
</tbody>


Thanks!!!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
try this


Book1
ABCDEFGH
1NameBobSueFredJamesSarahMarkJohn
2Account Number1234123512861295126712981288
3Date05/05/201910/06/201904/05/201901/06/2019
4Notefvfvfvfzfvzfvcbgnbggcnbbvncvbnchcfjlkdslflskd
5Date07/05/201910/06/2019
6Notefdsgvfbgfbnvkjlfnvlfnl
7Date10/06/2019
8Notenfjldsnvjsdfklnv
9
10Results
1110/06/2019Bobnfjldsnvjsdfklnv
12Suevcbgnbggc
13Jamesnvkjlfnvlfnl
Sheet6
Cell Formulas
RangeFormula
C11=INDEX(INDEX($A$1:$H$8,,MATCH(B11,$A$1:$H$1,0)),MATCH($A$11,INDEX($A$1:$H$8,,MATCH(B11,$A$1:$H$1,0)),0)+1)
 
Upvote 0

Book1
ABCDEFGH
1NameBobSueFredJamesSarahMarkJohn
2Account Number1234123512861295126712981288
3Date5/5/201910/6/20194/5/20191/6/2019
4Notefvfvfvfzfvzfvcbgnbggcnbbvncvbnchcfjlkdslflskd
5Date7/5/201910/6/2019
6Notefdsgvfbgfbnvkjlfnvlfnl
7Date10/6/2019
8Notenfjldsnvjsdfklnv
9
10Results
1110/6/2019Bobnfjldsnvjsdfklnv
12Suevcbgnbggc
13Jamesnvkjlfnvlfnl
14
Sheet1


In B11 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$1:$H$1,SMALL(IF($B$3:$H$7=$A$11,IF($B$4:$H$8<>"",COLUMN($B$3:$H$7)-COLUMN($B$3)+1)),ROWS($1:1))),"")

In C11 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$4:$H$8,MIN(IF($B$1:$H$1=$B11,IF($B$3:$H$7=$A$11,IF($B$4:$H$8<>"",ROW($B$4:$H$8)-ROW($B$4)+1)))),MATCH($B11,$B$1:$H$1,0)),"")
 
Upvote 0
ABCDEFGH
1NameBobSueFredJamesSarahMarkJohn
2Account Number1234123512861295126712981288
3Date5/5/201910/6/20194/5/20191/6/2019
4Notefvfvfvfzfvzfvcbgnbggcnbbvncvbnchcfjlkdslflskd
5Date7/5/201910/6/2019
6Notefdsgvfbgfbnvkjlfnvlfnl
7Date10/6/2019
8Notenfjldsnvjsdfklnv
9
10Results
1110/6/2019Bobnfjldsnvjsdfklnv
12Suevcbgnbggc
13Jamesnvkjlfnvlfnl
14

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

In B11 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$1:$H$1,SMALL(IF($B$3:$H$7=$A$11,IF($B$4:$H$8<>"",COLUMN($B$3:$H$7)-COLUMN($B$3)+1)),ROWS($1:1))),"")

In C11 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$4:$H$8,MIN(IF($B$1:$H$1=$B11,IF($B$3:$H$7=$A$11,IF($B$4:$H$8<>"",ROW($B$4:$H$8)-ROW($B$4)+1)))),MATCH($B11,$B$1:$H$1,0)),"")


That's perfect!!! THANK YOU!!
 
Upvote 0
Hi,

Sorry I've hit a snag, if you have more than one note on the same person on the same day it just repeats the same notes. Is there a way round this please?
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top