Copying sheet row when date has been reached

saileen

New Member
Joined
Nov 30, 2023
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi
I am relatively newer to excel. I have an inventory log I am trying to update for when items are needing to be replaced due to expiry or low order level. I am looking to have items that are expiring when date is = < 3months to have copied onto another sheet tab for ease of creating a new purchase order.
RedProduct is Expired/Missing
OrangeProduct will epxire in less than 30 days
YellowProduct will expire in less than 90 days
Light GreenProduct will expire in more than 90 days
Dark GreenProduct will expire in more than 180 days
I have 4 different columns with expiration dates because different order batches have different expiration dates. They are in columns J, L, N & P.

Is it possible for have a portion of the row transfer over to another sheet tab? Specifically for me, columns B, C, H, J, L, N & P

I'm also wondering if I could get help tweaking my conditional formatting formula for my expiration dates to change colour when they reach the dates above for a visual.. but it turns blank cells the colour when i prefer them to be plain if there is nothing inside of them
for yellow example
=AND(NOT(ISBLANK(J:J,L:L,N:N,P:P)), < TODAY() +90 )
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
1701379847880.png
 
Upvote 0
I think that the copying to a new sheet will require a VBA solution, which I'm not really equipped to help you with. I can offer help with your Conditional formatting issue, though. You have to make a separate rule for each range; the way you have nested the ISBLANK won't work. I've attached a sample with XLBB, but my conditional formats don't show up with it on here, so I've included the formulas as separate cells (column L). I also included a CF for if the date is not valid, as they defaulted to dark green (30-Feb-24 is invalid).

1701386004875.png


2023-11-30_2.xlsx
ABCDEFGHIJKLMNOP
1
2DATE FORMATYYYY/MM/DD
3Product is expired/missing
4Product will expire in less than 30 days
5Invalid dateProduct will expire in less than 90 days
6Product will expire in more than 90 days
7Product will expire in more than 180 days
8ColumnBColumnCColumnDColumnEColumnFQTY TotalMissingQTY 1Expiration 1QTY 2Expiration 2QTY 3Expiration 3QTY 4Expiration 4
9
102222024/01/30
114242024/03/30
1200
133032024/09/30
143032024/01/30
153032024/08/30
161012024-02-30
173032024/04/30
181012023/12/30
192022023/10/30
203032025/01/30
215122023/09/3032024-02-30
223032024/04/30
239062023/10/3032023/12/30
Sheet1
Cell Formulas
RangeFormula
G10:G23G10=SUM(I10,K10,M10,O10)
 
Upvote 0
Solution
I think that the copying to a new sheet will require a VBA solution, which I'm not really equipped to help you with. I can offer help with your Conditional formatting issue, though. You have to make a separate rule for each range; the way you have nested the ISBLANK won't work. I've attached a sample with XLBB, but my conditional formats don't show up with it on here, so I've included the formulas as separate cells (column L). I also included a CF for if the date is not valid, as they defaulted to dark green (30-Feb-24 is invalid).
Thank you for this!
Oops, just noticed this too - guess I was trying to stretch February out lol
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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