Using Index Match to find the month the value occurs in

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
380
Office Version
  1. 365
Platform
  1. Windows
Hi All,

i am trying to find the specific month (row 1 is dates, Jan thru Sept) that a specific value (in this case "vacant") occurs for a specific property number in column A.

I tried using index/match in a reverse/backward manner in order to do so, but the formula is not working. Any idea how I can flip this formula so the output is the month in which "vacant" occurs?

Thanks so much for any help!


=INDEX('[Sheet1.xlsx]Vacancy Status'!$E:$M,MATCH("0150",'[Sheet1.xlsx]Vacancy Status'!$A:$A,0),MATCH("Vacant",'[Sheet1.xlsx]Vacancy Status'!$E$1:$M$1,0))
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Do you mean something like this?
Book1
ABCDEFGHIJKLM
1JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
2a
3b
4cVacant
5dVacant
6e
7f
8g
9
10June
11March
Sheet2
Cell Formulas
RangeFormula
A10:A11A10=TOCOL(IFS(B2:M8="Vacant",B1:M1),2)
Dynamic array formulas.
 
Upvote 0
yes, exactly, thank you so much! How can i augment that formula to look for a specific property number within that matrix?
 
Upvote 0
How about this?
Book1
ABCDEFGHIJKLM
1JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
2a
3b
4cVacant
5dVacant
6e
7f
8g
9
10aNone
11bNone
12cJune
13dMarch
14eNone
15fNone
16gNone
Sheet2
Cell Formulas
RangeFormula
B10:B16B10=XLOOKUP("Vacant",FILTER($B$2:$M$8,$A$2:$A$8=A10),$B$1:$M$1,"None")
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,195
Members
452,616
Latest member
intern444

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