If cell above it contains same data, change formula

Vincent Thank You

New Member
Joined
Oct 3, 2017
Messages
18
I've been stuck on this for about a week, I'll do my best to explain what I'm trying to do.

I have column J with the following formula:
=(((G2)+(F2/Q2))-(NETWORKDAYS(TODAY(), I2)/22))

I'm using this formula to tell, based on months of inventory on hand (G2), plus months on purchase order (F2/Q2) and based on a date in column (I2), when the inventory will arrive, how many months on inventory will I have at arrival.

I also have a formula in column H that says, "Alert" if the quantity of inventory I have on hand will run out by said date in column I and that formula looks like this:
=IF((G2*30)<(I2-TODAY()), "ALERT", "")

My issue is that some of the items in this list have multiple purchase orders and therefore multiple lines, one for each PO. I need the formula to recognize the duplicates and take into consideration the inventory on that PO as received and alert or figure the correct months on hand accordingly. I hope his is making some sense to someone. Thanks in advance!

VENDORITEM #DESCRIPTIONNET AVAILMINIMUMQTY ON POMONTHS ON O/HALERTSEXPECTED DATEMONTHS O/H AFTER SPMT ARRIVAL
OMNICNJABOBPWREUSABLE VINYL WHITE61502150.3ALERT8/30/20199.7
OMNICN592APBWRISTBAND POOL PASS ADULT4502,8001,0000.3ALERT8/30/20190.4
OMNICNGABOBTRAQREUSABLE VINYL AQUA3192,2505,0000.68/28/201910.3
OMNICNGABOBTRAQREUSABLE VINYL AQUA3192,2501,0000.6ALERT10/15/20190.6
OMNICNGABB17OMSREUSABLE VINYL BLUE/SILVER KIT211752400.8ALERT9/20/20198.9
OMNICN592ABNGWRISTBAND POOL PASS ADULT6504,5002,0000.98/30/20192.9
OMNICNGABOBK4DGREUSABLE VINYL DARK GREEN KIT17801001.1ALERT10/11/20195.4
OMNICNGABOBTRPWREUSABLE VINYL WHITE4912,1005,0001.18/28/201911.5
OMNICNGABOBTRPWREUSABLE VINYL WHITE4912,1001,0001.1ALERT10/15/20191.2
OMNICNE15GREGREEN ELIMINATOR PET WASTE BOX2251,0001,0001.28/21/20196.0
OMNICNE15GREGREEN ELIMINATOR PET WASTE BOX2251,0007501.2ALERT9/27/20193.5

<tbody>
</tbody>

tm5zP0Y
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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