How to match data in rows

GLamberson

New Member
Joined
Oct 16, 2018
Messages
10
I thought this would be an easy problem but am really struggling. I have data in rows on Sheet 1:

11 12 13 14
.6 .5 .4 .3

On this example, the starting #,11, will vary from time to time.

On Sheet 2, I have rows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14

What I need to do is match the values in Sheet 1 with the corresponding # on Sheet 2 so I would get:

1 2 3 4 5 6 7 8 9 10 11 12 13 14
0 0 0 0 0 0 0 0 0 0 .6 .5 .4 .3

Any suggestions?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
You could try HLOOKUP, for example:

Sheet1 row 1 are values you want to look up.
Sheet1 row 2 are values you want to return based on the search.
Sheet2 row 1 (A1:_1) are values, e.g. 1, 2, 3, 4, 5, etc..

In Sheet2 cell A2 use:
Excel Formula:
=IFERROR(HLOOKUP(A1,Sheet1!1:2,2,0),0)
 
Upvote 0
Thank you Z51, but that isn't working. My example above is cluttered. Unfortunately, I have not been able to set up to download the spreadsheet, but I did do a screen capture of Sheet 1 and Sheet2.

Sheet 1
Sheet 1.JPG


Sheet 2
Sheet 2.JPG
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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