Return #Days from today based on several conditions.

Plukey

Board Regular
Joined
Apr 19, 2019
Messages
60
I don't have anything close to working yet. My boss needs to know if an item has been in inventory for more than 120 days added to a weekly report. It sounds easy at first, I have to manually accomplish the task and hoping someone has an idea. I'm okay with VBA or Formula or anything that is close that I can work off of. Any thing would be appreciated!


1st. I use dated if formula to count #days between column (AF) & Today then,
2nd. Filter Column (F) with just "N" & Blanks. Column (F) Only contains ( Y, N, Blanks) then,
3rd. Filter Column AH only Blanks. Column (AH) only contains Dates when an item has shipped. then,
4th. I manually enter the total lines that are over 120 days in a cell on our report sheet & copy and paste the list to a summary sheet in the workbook.
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
1,585
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Please upload your example file & Desired Results with XL2BB ADDIN (Preferable) OR upload it at free uploading site e.g. www.dropbox.com or googledrive or onedrive and insert link here.
 

Plukey

Board Regular
Joined
Apr 19, 2019
Messages
60
Maybe I can clarify and make it sound a little less confusing..

Count the number of days between TODAY() and Column AF
*****Only if Column (F) = a letter "N" or a Blank Cell & If Column (AG) through (AM) are Blank cells.

that'll get me started.
 

Plukey

Board Regular
Joined
Apr 19, 2019
Messages
60

ADVERTISEMENT

I guess something like this, I typed up real quick, tested and it gives errors.

Excel Formula:
=IF(F2="",TODAY()-AF2,IF(F2="*N*",TODAY()-AF2,IF(AG:AM="",TODAY()-AF2)))
 

A Durfani

Board Regular
Joined
Apr 12, 2019
Messages
229
Office Version
  1. 2013
Platform
  1. Windows
Try
Put formula in AB3
Excel Formula:
=IF(OR(F3="N",F3=""),IF(AND(AG3="",AH3="",AI3="",AJ3="",AK3="",AL3="",AM3=""),TODAY()-AF3,""),"")
 
Solution

Watch MrExcel Video

Forum statistics

Threads
1,127,205
Messages
5,623,364
Members
415,969
Latest member
Rey99

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
Top