# Return #Days from today based on several conditions.

#### Plukey

##### Board Regular
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.

### 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.

#### Plukey

##### Board Regular
Unfortunately, where I work I'm prohibited and blocked from sending any information. Thank you anyway for the quick response.

#### Plukey

##### Board Regular
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

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
Try
Put formula in AB3
Excel Formula:
``=IF(OR(F3="N",F3=""),IF(AND(AG3="",AH3="",AI3="",AJ3="",AK3="",AL3="",AM3=""),TODAY()-AF3,""),"")``

#### Plukey

##### Board Regular
Try
Put formula in AB3
Excel Formula:
``=IF(OR(F3="N",F3=""),IF(AND(AG3="",AH3="",AI3="",AJ3="",AK3="",AL3="",AM3=""),TODAY()-AF3,""),"")``
Works Perfect!!! Thank You!!!

You're welcome!

Replies
0
Views
202
Replies
17
Views
172
Replies
5
Views
190
Replies
7
Views
368
Replies
5
Views
55

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.

### Which adblocker are you using?

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

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