Dec 30 2022 09:30 AM
Hey hoping someone can help with this
I have attached an example of a problem I am having
when I copy the SPEC sheet below the original one in the worksheet, column H starting at row 7 going down to row 26 is dived by the number in G28 so I have needed to use the $g$28 formula
when I copy the whole spec sheet again the formula stays on $g$28, how do I make it so that it changes to $g$61
cheers
Dec 30 2022 10:51 AM
This may work for you:
=LET(KegVol,FILTER(Vol,(Keg="Cocktails Per Keg")*(ISNUMBER(Vol))),k,COUNTIF($F$7:F7,"Cocktails Per Keg"),I7/INDEX(KegVol,IF(k=0,1,k)))
The SUM is not needed so I removed it. FILTER obtains all the numbers across from cells with "Cocktails Per Keg". The COUNTIF is determining how many times "Cocktails Per Keg" has appeared. If it's appeared once, the denominator is the first number obtained from FILTER, if it's appeared twice, pull the second, etc. I realize that phrase appears in spots where there are no numbers, but it works out even if the first set is an exception (the count is 0).
Dec 30 2022 10:56 AM
You will have to enter this manually. However, it is sufficient if you do it in cell H40. For the range H41:H59 you can copy the formula from H40 into it.
By the way, you can leave out SUM() completely.
=I40/G$61
Dec 30 2022 10:58 AM
SolutionJan 01 2023 04:30 AM
Dec 30 2022 10:58 AM
Solution