# Syntax help: Match Cells Pick Value

#### Rustyf2003

##### New Member
Greetings from the Bluegrass State -
Have a time with much calculation - On final Round though I am having difficulty with this one

Cell: B3 contains a date entered by User

Cells: G15 through G30 contain dates
Cells: H15 through H30 contain Values

Am Looking to AutoFill Cell C3 with the VALUE found in respective H Row where B3 = G##

Any help much appreciated - and please know I HAVE TRIED TO FIGURE THIS OUT
r

### Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

#### Haseeb Avarakkan

##### Well-known Member
Hello,

If you just have one occurance of the lookup date (B3) try the VLOOKUP in C3,

Code:
=VLOOKUP(B3,G15:H30,2,FALSE)

If you have multiple occurances & you need to show all the matching dates,

C3, Confirmed with Control+Shift+Enter, not just Enter. copy down...

Code:
=INDEX(\$H\$15:\$H\$30,SMALL(IF(\$G\$15:\$G\$30=\$B\$3,ROW(\$H\$15:\$H\$30)-ROW(\$H\$15)+1),ROWS(C\$3:C3)))

#### Rustyf2003

##### New Member
Thanks Haseeb: I had tried variations of the VLookup without success
and the Index(syntax) didn't provide a result

Cell B3 = 8/1/2011

Cell G15 = 8/1/2011 { Cell H15 = 29
Cell G16 = 8/1/2012 { Cell H16 = 41
Cell G17 = 8/1/2013 { Cell H17 = 53
and continues
..............

My Need
In Cell C3 I need to autopopulate the value from the matched B and G Cells
If B3 = G15 - I Need C3 to fill with value from H15 (29)
If B3 = G16 - I Need C3 to fill with value from H16 (41)
If B3 = G17 - I Need C3 to fill with value from H17 (53)

Again, any assistance and guidance is much appreciated
Rusty

#### Haseeb Avarakkan

##### Well-known Member
You need to press Control+Shift+Enter, not just Enter. in the INDEX(.....
Select C3, press F2 then hit Control+Shift+Enter.

Copy down.

#### Rustyf2003

##### New Member
Thanks Haseeb:
GOT IT - YOUR HELP IS MUCH APPRECIATED.
Rusty

Replies
4
Views
118
Replies
2
Views
251
Replies
2
Views
747
Replies
2
Views
191
Replies
3
Views
733

1,191,685
Messages
5,988,058
Members
440,125
Latest member
vincentchu2369

### 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.

### Which adblocker are you using?

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

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