Hello all,
I am using the following formula to lookup when the last stocktake date of product range has been done. This formula triggers its date off the keyword "Stocktake" in column F. It falls over when a random stocktake is done on a separate product though for instance if stocktake is done on product B at a different date to product A. So I need to work out how to include an if statement to show if product name is listed in column a then run the lookup formula.
So what I am hoping to do is trigger it when product in column B matches by name. If Product A in Column B and Stocktake in Column F return date from Column A. I will need to seperate out the lookup for the different products as shown above but I do not know how to include the if statement for the product lookup in column B.
All help is greatly appreciated.
I am using the following formula to lookup when the last stocktake date of product range has been done. This formula triggers its date off the keyword "Stocktake" in column F. It falls over when a random stocktake is done on a separate product though for instance if stocktake is done on product B at a different date to product A. So I need to work out how to include an if statement to show if product name is listed in column a then run the lookup formula.
Excel Formula:
=LOOKUP(2,1/($A$6:$A$1000=AGGREGATE(14,6,$A$6:$A$1000/($F$6:$F$1000="Stocktake"),1)),$A$6:$A$81000)
Product A In |
Excel Formula:
| Product B In |
| ||
Product A Out |
Excel Formula:
| Product B Out |
| ||
Last Stocktake date Product A | New Formula with IF Product A in column B then return last stocktake date of product A | Last Stocktake date Product B | New Formula with IF Product B in column B then return last stocktake date of product B |
So what I am hoping to do is trigger it when product in column B matches by name. If Product A in Column B and Stocktake in Column F return date from Column A. I will need to seperate out the lookup for the different products as shown above but I do not know how to include the if statement for the product lookup in column B.
Date | Product | In From Supply | Out | In from Other | Notes |
11/8/22 | Product A | 50 | |||
10/10/22 | Product B | 65 | |||
12/10/22 | Product C | 120 | |||
18/11/22 | Product B | 15 | |||
22/11/22 | Product A | 18 | |||
1/12/22 | Product A | 30 | |||
1/12/22 | Product B | 6 | Stocktake | ||
8/12/22 | Product C | 5 | Stocktake | ||
16/1/23 | Product A | 2 | Stocktake |
All help is greatly appreciated.