Index / Match functions

garypea123

Board Regular
Joined
Mar 16, 2020
Messages
221
Office Version
  1. 365
Platform
  1. Windows
Good Morning

Below is a simplified example of what I am looking for.

Top table is my raw data and my bottom table is my analysis table.

B20 is just a concatenate of B6,C6,C7 to create unique / identifiable refence. C19 will change depending which week it is.

I would like a formula in C20 which will return the value of 3 (in this example). The are long winded ways of me doing this, but perhaps there is a more simple approach as apposed to having to create additional inputs on Raw Data source (Concatenates and Indexing).




INDEX Match.PNG
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
try
=INDEX($E$6:$H$9,MATCH($B20,$B$6:$B$9&$C$6:$C$9&$D$6:$D$9,0),MATCH(C$19,$E$5:$H$5,0))


Book3.xlsx
ABCDEFGH
1
2
3
4
5wk1wk2wk3wk4
6garyoneopen1234
7garyoneclosed10203040
8tonyoneopen19385776
9tonyoneclosed285684112
10
11
12
13
14
15
16
17
18
19wk3
20garyoneopen3
21garyoneclosed30
22tonyoneopen57
23tonyoneclosed84
24
Sheet1
Cell Formulas
RangeFormula
B20:B23B20=B6&C6&D6
C20:C23C20=INDEX($E$6:$H$9,MATCH($B20,$B$6:$B$9&$C$6:$C$9&$D$6:$D$9,0),MATCH(C$19,$E$5:$H$5,0))


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
 
Upvote 0
Solution
Perfect - I will look into the XL2BB and do some tests.

I know previously I could not do it on my work laptop due to security. But will look at personal one for such questions.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

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