Index match formula

asad

Well-known Member
Joined
Sep 9, 2008
Messages
1,434
Hi All,

I have a simple Index match formula which is giving me a headache. It is one of the simplest of the formulas but can't get my head around it.
28/09/201826/09/2018 Wed
6/11/201827/09/2018
25/12/201828/09/2018
26/12/201829/09/2018
1/01/201930/09/2018
28/01/20191/10/2018
11/03/20192/10/2018
19/04/2019
22/04/2019
25/04/2019
10/06/2019
27/09/2019
5/11/2019
25/12/2019
26/12/2019

<colgroup><col><col><col></colgroup><tbody>
</tbody>

I have tried this
Code:
{=INDEX(TEXT($B$1:$B$7,"ddd"),IF(ISNUMBER(MATCH($B$1:$B$7,$A$1:$A$15,0)),ROW($B$1:$B$7)))}
but it gives me Wed as the answer as is hown above. The answer is supposed to be Fri.

Thanks
Asad
 

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.
Got it,
Code:
=TEXT(SUMPRODUCT(--ISNUMBER(MATCH(B1:B7,A1:A15,0))*(B1:B7)),"ddd")
does the trick
 
Upvote 0
Sorry Aladin,

I should have explained it in my first post.
I am trying to check if any of the dates in column B matches any of the dates in column A and then get the day of that matching date as an outcome. There will be maximum one day that will be matching, but most of the times, there will be none. In the later case, I want the answer to be blank.

Thanks
Asad
 
Upvote 0
The formula is not matching just one date. It is matching the whole range in column B against the range in column A. So the date in B 28/09/2018 is matching with the first date in column A and that day is a Friday. Hence, the desired answer is Fri.
 
Upvote 0
The formula is not matching just one date. It is matching the whole range in column B against the range in column A. So the date in B 28/09/2018 is matching with the first date in column A and that day is a Friday. Hence, the desired answer is Fri.

Goal: The day name of any date which matches a date in column A.

=TEXT(LOOKUP(9.99999999999999E+307,MATCH(B1:B7,A1:A15,0),B1:B7),"ddd")
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
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