INDEX MATCH help with dates and Fire ext number

MedicChris

New Member
Joined
Sep 12, 2015
Messages
7
Have been trying different solutions without avail:
Sheet 1
importing fire extinguisher inspections - Each fire Ext will get inspected once a month

Sheet 2 used for tracking purposes
Bring over date inspected then will do some conditional formatting based on info
The date inspected is a range ie.. 1/1/2022 - 1/31/2022 and as long as it falls in that range for that month it is good

Formulas i have tried (cell #'s don't match example)
=index(c:c,match(1,(c:c>=1/1/2022)*(c:c<=1/31/2022),0))
Vlookup(A4,Sheet1!B:C,2,0) - this one returned the first value only based upon the fire ext #
Started using index with maxifs but got frustrated

Any help would be greatly appreciated
you can type answer to example and i will adjust cell numbers accordingly
 

Attachments

  • Screen Shot 2022-01-20 at 8.57.30 PM.png
    Screen Shot 2022-01-20 at 8.57.30 PM.png
    118.9 KB · Views: 26

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
maybe
=MAXIFS(B2:B14,A2:A14,D2,B2:B14,">="&E1,B2:B14,"<="&EOMONTH(E1,0))

Not sure what version of excel you have

You can format the dates in the results table header to show Jan-21

Also need to add the Sheet! reference

Works of the Fire Numbers are numeric , not if text - would need to rethink that

=IF(MAXIFS($B$2:$B$14,$A$2:$A$14,$D2,$B$2:$B$14,">="&E$1,$B$2:$B$14,"<="&EOMONTH(E$1,0))=0,"",MAXIFS($B$2:$B$14,$A$2:$A$14,$D2,$B$2:$B$14,">="&E$1,$B$2:$B$14,"<="&EOMONTH(E$1,0)))


Book1
ABCDEFG
11/1/212/1/213/1/21
211/16/2111/16/21  
322/24/2121/1/212/26/213/8/21
4131/12/212/18/213/24/21
51
61
721/1/21
824/1/21
922/26/21
1023/8/21
1131/12/21
1232/18/21
1333/24/21
143
Sheet1
Cell Formulas
RangeFormula
E2:G4E2=IF(MAXIFS($B$2:$B$14,$A$2:$A$14,$D2,$B$2:$B$14,">="&E$1,$B$2:$B$14,"<="&EOMONTH(E$1,0))=0,"",MAXIFS($B$2:$B$14,$A$2:$A$14,$D2,$B$2:$B$14,">="&E$1,$B$2:$B$14,"<="&EOMONTH(E$1,0)))


changed format - and added NO Date , if no date found

Book1
ABCDEFGH
1FireInspectFireJan-21Feb-21Mar-21
211/16/2111/16/21NO DATENO DATE
322/24/2121/1/212/26/213/8/21
4131/12/212/18/213/24/21
51
61
721/1/21
824/1/21
922/26/21
1023/8/21
1131/12/21
1232/18/21
1333/24/21
143
15
Sheet1
Cell Formulas
RangeFormula
E2:G4E2=IF(MAXIFS($B$2:$B$14,$A$2:$A$14,$D2,$B$2:$B$14,">="&E$1,$B$2:$B$14,"<="&EOMONTH(E$1,0))=0,"NO DATE",MAXIFS($B$2:$B$14,$A$2:$A$14,$D2,$B$2:$B$14,">="&E$1,$B$2:$B$14,"<="&EOMONTH(E$1,0)))


EDIT - maybe it will work with TEXT fire ext number

Book1
ABCDEFG
1FireInspectFireJan-21Feb-21Mar-21
2a21/16/21a21/16/21NO DATENO DATE
322/24/2121/12/212/26/213/8/21
4131/12/212/18/213/24/21
51x123aNO DATE2/4/21NO DATE
61
721/12/21
8x123a2/4/21
922/26/21
1023/8/21
1131/12/21
1232/18/21
1333/24/21
143
Sheet1
Cell Formulas
RangeFormula
E2:G5E2=IF(MAXIFS($B$2:$B$14,$A$2:$A$14,$D2,$B$2:$B$14,">="&E$1,$B$2:$B$14,"<="&EOMONTH(E$1,0))=0,"NO DATE",MAXIFS($B$2:$B$14,$A$2:$A$14,$D2,$B$2:$B$14,">="&E$1,$B$2:$B$14,"<="&EOMONTH(E$1,0)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
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