I have three long formula (all similar but slightly different) in HK, HL, and HQ that I use to track estimated usage of ingredients, actual usage, and six week average usage. The results are then used to track inventory and alert if inventory gets low. (There are numerous copies of these formula, about 50 per week.)
So what this formula does is it checks each recipe for matches to the ingredient listed in HI and returns the estimated usage of the ingredient. Then all the matches are summed.
I was trying to decide if Index Match would be a better choice? Or if there would be another way entirely that would be more efficient?
WeTransfer is the simplest way to send your files around the world
we.tl
=SUM(SUMIF(A68:A113,HI90,F68:F113)*(G124),SUMIF(S68:S113,HI90,X68:X113)*(Y124),SUMIF(AK68:AK113,HI90,AP68:AP113)*(AQ124),SUMIF(BC68:BC113,HI90,BH68:BH113)*(BR124),SUMIF(BU68:BU113,HI90,BZ68:BZ113)*(CA124),SUMIF(CM68:CM113,HI90,CR68:CR113)*(CS124),SUMIF(DE68:DE113,HI90,DJ68:DJ113)*(DK124),SUMIF(DW68:DW113,HI90,EB68:EB113)*(EC124),SUMIF(EO68:EO113,HI90,ET68:ET113)*(EU124),SUMIF(FG68:FG113,HI90,FL68:FL113)*(FM124),SUMIF(FY68:FY113,HI90,GD68:GD113)*(GE124),SUMIF(GQ68:GQ113,HI90,GV68:GV113)*(GW124))
My first 62 rows have numerous NA errors because the date in H1 isn't set. (I copy row 1 to 62 each week for that week's diet recipes and then set the date.) I never considered that NA might be causing Excel to slow down, but that will be easy to resolve by setting the date in H1 to December 25.