indexing and matching

jbrown021286

Board Regular
Joined
Mar 13, 2023
Messages
64
Office Version
  1. 365
Platform
  1. Windows
1707888470082.png

i need to make a formula that references the dated in row 31 and when a47 matches one of the cells in row 31 it returns values from corresponding cells. for example if a47 was 2-feb b47 would need to = d42 , c47 would need to =d43 , e47 would need to =d40 and f47 would need to =d41. not sure if it makes a difference but all the cells being referenced are formula values
 

Attachments

  • 1707888444543.png
    1707888444543.png
    53.5 KB · Views: 9

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try
Excel Formula:
=IFERROR(INDEX(42:42,MATCH(A47,31:31,0)),"")
in B47 and
Excel Formula:
=IFERROR(INDEX(43:43,MATCH(A47,31:31,0)),"")
in C47. Adjusting the index row for what row you want to return the value of.
 
Upvote 0
Solution
how about this

Cell B47
Excel Formula:
=LET(data,$C$32:$P$43,
no,$B$32:$B$43,
date,$C$31:$P$31,
tch,"3+4",
HSTACK(INDEX(data,MATCH(tch,no,0),MATCH(A47,date,0)),INDEX(data,MATCH(tch,no,0)+1,MATCH(A47,date,0))))

Cell E47
Excel Formula:
=LET(data,$C$32:$P$43,
no,$B$32:$B$43,
date,$C$31:$P$31,
tch,"1+2",
HSTACK(INDEX(data,MATCH(tch,no,0),MATCH(A47,date,0)),INDEX(data,MATCH(tch,no,0)+1,MATCH(A47,date,0))))
 
Upvote 0

Forum statistics

Threads
1,215,626
Messages
6,125,896
Members
449,271
Latest member
bergy32204

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