Index Max function

mychi11

Board Regular
Joined
May 11, 2020
Messages
95
Office Version
  1. 2016
Platform
  1. Windows
I am trying to use a formula index max to find the last day I did my ordering, the formula works except for one last column. Not sure why. Could any experts here kindly help?
PO Inventory Budget Est Final.xlsm
ABCDEFGHJKLM
1PRODUCT NAME DESCRIPTIONSUPPLIERBRANDCAT. NOQTY (Exluding Expired)Expiring Window (Days)Stock StatusOrder QuantityLast order placed onUnit/ Box
2BD-1 ml Syringe1CC SYRINGE ONLY, SLIP TIP (BOX OF 100S)UNITED ITALIAN CORP.(HK) LTD.BD302100030LOW INVENTORY  100pcs
3BD-27G 1/2 NeedleDISPOSABLE NEEDLE 27GX1/2" (BOX OF 100S)UNITED ITALIAN CORP.(HK) LTD.BD305109030LOW INVENTORY  100pcs
4CBS-High Security TubeHIGH SECURITY TUBE, PACK OF 20HARVEY, MAIN & CO.LTDCBS22252030LOW INVENTORY  20pcs
5Coda-Xtra Inline Filter (Green)CODA XTRA INLINE FILTER (6/PK), GREENSURPLUS GOLDEN CHINA LTDCodaCODA_CXG R-012030LOW INVENTORY  1pcs
6Cook-17G Double Lumen17G DOUBLE LUMEN OVUM ASPIRATION NEEDLECOOK ASIA LTD.CookK-OPSD-1735-A-L030LOW INVENTORY  1pcs
7Cook-17G Single Lumen17G SINGLE LUMEN OVUM ASPIRATION NEEDLECOOK ASIA LTD.Cook030LOW INVENTORY  1pcs
8Cook-30°Holding PipetteCOOK HOLDING PIPETTECOOK ASIA LTD.CookK-HPIP-21302030IN STOCK416/6/202210pcs
9Cook-30°Injection PipetteCOOK MICROINJECTION PIPETTECOOK ASIA LTD.CookK-MPIP-3130030LOW INVENTORY216/6/202210pcs
10Cook-ET CatheterGUARDIA ACCESS CURVED EMBRYO TRANSFER CATHETERCOOK ASIA LTD.CookK-Jets 7019030LOW INVENTORY  1pcs
11Cook-ET SyringeAIR-TITE SYRINGE (25/BOX)COOK ASIA LTD.CookK-ATS-1000030LOW INVENTORY  25pcs
12Cooper Surgical -PICSI DishSPERM SELECTION DEVICE, PICSI FOR SPERM SELECTION, 20 DISHES/ EACHSURPLUS GOLDEN CHINA LTDCooper SurgicalBCT-PICSI-20030LOW INVENTORY  20pcs
13Cooper Surgical -Stripper tips 50µmCooper Surgical -Stripper tips 50µmSURPLUS GOLDEN CHINA LTDCooper SurgicalOR_MXL3-IND-175030LOW INVENTORY  20pcs
14Cooper Surgical-Glass Pasteur Pipets (3pack)IVF PASTEUR PIPETS PLUGGED, BOX OF 90 COTTON PLUGGED, 30 POUCHES OF 3 PIPETS EACH, 9" (22.9CM) LONGSURPLUS GOLDEN CHINA LTDCooper SurgicalOR_PP-9-90PL030LOW INVENTORY  90pcs
15Cooper Surgical-Glass Pasteur Pipets (50pcs)SURPLUS GOLDEN CHINA LTDCooper Surgical030LOW INVENTORY  90pcs
16Cooper Surgical-Stripper tips 135µmSTRIPPER TIPS 135UM, INDIVIDUAL PACK, 135 UM (20/PK)SURPLUS GOLDEN CHINA LTDCooper SurgicalOR_MXL3-IND-135030LOW INVENTORY  20pcs
17Cooper Surgical-Wallace-ET catheterSURPLUS GOLDEN CHINA LTDCooper Surgical030LOW INVENTORY  1pcs
18Cooper Surgical-Wallace-StyletSURPLUS GOLDEN CHINA LTDCooper Surgical030LOW INVENTORY  1pcs
19Falcon-5 ml TubesROUND BOTTOM TUBES 5ML, 12 X 75MM POLYSTYRENE W/SN AP CAP. STERILEBIO-GENE TECHNOLOGY LIMITEDFalcon352058030LOW INVENTORY216/6/2022500pcs
20Falcon-Sperm ContainerCORNING FALCON-CONTAINERS 4 1/2 OZ W/POLYPROPYLENEBIO-GENE TECHNOLOGY LIMITEDFalcon354013030LOW INVENTORY00/1/1900100pcs
Inventory
Cell Formulas
RangeFormula
J2:J20J2=IFERROR(INDEX('PO Item+Eva'!$F$3:$F$9999,SUMPRODUCT(MAX(ROW('PO Item+Eva'!$E$3:$E$9999)*(Inventory!B2='PO Item+Eva'!$E$3:$E$9999))-1)),"")
K2:K20K2=IFERROR(INDEX('Purchased Item'!$M$3:$M$9999,SUMPRODUCT(MAX(ROW('Purchased Item'!$E$3:$E$9999)*(Inventory!B2='Purchased Item'!$E$3:$E$9999))-1)),"")
F2:F20F2=IF(A2<>"",P2+R2+T2+V2,"")
H2:H20H2=IF(F2<N2,"LOW INVENTORY","IN STOCK")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:J2,A3:E80,F3:F532,G3:I80,L2:X80,K2:K215,J3:J222Expression=MOD(ROW(),2)=0textNO

PO Inventory Budget Est Final.xlsm
ABCEFGHIJKLM
1Purchase Items
2PO#VendorItem NoDescriptionQtyCurrencyPriceDiscountFinal PricePO ROWROWOrder Date
31LAP TUCK AIR CONDITIONING REFRIDGERATION ENGINEERING CO., LIMITED-AIR CONDITIONING SERVICE1HK$3000$3,000.0018 13/6/2022
42COOK ASIA LTD.K-MPIP-3130COOK MICROINJECTION PIPETTE2HK$2180$4,360.0018 16/6/2022
52COOK ASIA LTD.K-HPIP-2130COOK HOLDING PIPETTE2HK$1500$3,000.0019 16/6/2022
63BIO-GENE TECHNOLOGY LIMITED352058ROUND BOTTOM TUBES 5ML, 12 X 75MM POLYSTYRENE W/SN AP CAP. STERILE4HK$750$3,000.0018 16/6/2022
73BIO-GENE TECHNOLOGY LIMITED354013CORNING FALCON-CONTAINERS 4 1/2 OZ W/POLYPROPYLENE2HK$560$1,120.0019 16/6/2022
8
9
Purchased Item
Cell Formulas
RangeFormula
L3:L7L3=ROW()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3Expression=MOD(ROW(),2)=0textNO
Cells with Data Validation
CellAllowCriteria
B3List=Vendor_Name
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
the formula works except for one last column
Actually, your formula is reading the date from the incorrect row for all the results obtained. It was just a fluke that the same date appeared in a range of cells.

Try this formula in cell K2 of 'Inventory'

Excel Formula:
=IF(B2="","",IFERROR(AGGREGATE(14,6,'Purchased Item'!M$3:M$9999/('Purchased Item'!E$3:E$9999=B2),1),""))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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