match column data to an horizontal array then return value

Jescanilla

New Member
Joined
Aug 17, 2021
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Good afternoon.

as the title says im trying to match a number in a column to an horizontal array then return the value at the side indicated by the column.
I have try to use index and match for this porpouse without good result.

it must look horizontally for the value given in the column vertically and the copy the value at the left of the column with the data.


Preparacion cambio componente anual detalle semanal.xlsx
BCDEFGHIJKLMNOP
21295013101,213252,413403,613554,81370613857,214008,414159,614310,81446214613,214764,4
3HHDATA
4521446052
5341370034
Sheet2 (2)



hope you can help me.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I'm unclear on how you determine those 2 values? Are you looking for (for example) when 13700 is closest to D2:P2?
What other options are possible for DATA in the C column? Fractional?
 
Upvote 0
Not too sure about your description, but try this?
Book1
BCDEFGHIJKLMNOP
21295013101.213252.413403.613554.81370613857.214008.414159.614310.81446214613.214764.4
3HHDATA
45214460 52
5341370034
Sheet2
Cell Formulas
RangeFormula
D4:P5D4=IF(D$2:P$2=INDEX(D$2:P$2,XMATCH(C4:C5,D$2:P$2,1)),B4:B5,"")
Dynamic array formulas.
 
Upvote 0
Solution
I'm unclear on how you determine those 2 values? Are you looking for (for example) when 13700 is closest to D2:P2?
What other options are possible for DATA in the C column? Fractional?
Yes. i need to position to the nearest value of D2:P2.
And fractional are not neccesary.

Cheers
 
Upvote 0
Not too sure about your description, but try this?
Book1
BCDEFGHIJKLMNOP
21295013101.213252.413403.613554.81370613857.214008.414159.614310.81446214613.214764.4
3HHDATA
45214460 52
5341370034
Sheet2
Cell Formulas
RangeFormula
D4:P5D4=IF(D$2:P$2=INDEX(D$2:P$2,XMATCH(C4:C5,D$2:P$2,1)),B4:B5,"")
Dynamic array formulas.
i use the exact formula and i got #SPILL! error
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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