IF Function Query - Extended - excel

I got an answer for a previous question regarding an IF function on my excel tracking sheet.
I would like to further this by adding another formula to the existing formula.
I am looking for some help regarding an IF function on an Excel
document.
Basically if the Date Listed cell is dated over 1 month ago (eg: Date
Listed 6-Aug but today is 6-Sep) and the Date Sold cell is blank, then
I would like the Mark Down cell to say 'MARK DOWN', which at the
moment it does but it is only 10-Aug today.
If the Date Listed cell and the Date Sold cell both contain dates I
would like the Mark Down cell to say 'OK'.
So far I have this written:
=IF(AND(DATE(YEAR(G2),MONTH(G2),DAY(G2)), ISBLANK(H2)),"MARK DOWN","OK")
I know I'm not far off but I need help sorting out the
last parts..
Bonus if you can help me add a highlighted cell formatting to it :)!
Example Image
******Original formula:
=IF(AND((TODAY()-G11)>31,ISBLANK(H11)),"Mark Down","No")******
My additional query is:
If this item hadn't been uploaded yet, therefore there would be no date in the Date Listed cell, I would like to have an ISBLANK function which returns with "Not Required".
I have read something about ampersands and joining functions but not sure how to use them properly.
Here is what I have so far:
=IF(AND((TODAY()-G19)>31,ISBLANK(H19)),"Mark Down","No"), OR(ISBLANK(G19)),"Not Required")
Thanks again.

Related

Deleting cell data when it is a specific date

If A1 contained the number 5 and A2 contain the date 7/1/23 when we reached the date of 7/1/23 I want to delete the number 5 in cell A1. Can anyone assist with a simple formula for this? Thank you!
Hey there!
What you want to do within the same cell as the value 5 may require some more skilled coding that allows the cell to hold data and a formula that updates itself. However I can recommend another way that achieves what you want but also retains some history.
The left set is what your result would look like if the date is older than todays date. The right being if todays date has not reached the date you specified.
Before row contains the points that would currently exist, while after would contain the points after the date affects the "drop off" you would like.
Then an If statement just compares whether todays date is older/same/or newer than the target date. (To make this formula more dynamic, you can replace B5 with "today()")
=IF(B5>=B3,"",B1)
or
=IF(TODAY()>=B3,"",B1)
Hope this helps!
What it should look like:

Indirect Function with Sheet Names

I have a list of all of the sheet names in my workbook on Sheet1 and I am trying, without success, to use the INDIRECT function to reference a cell on another sheet using said name. I am aware that this is a common question, I have looked at about 10 other questions/answers on this website in addition to others. For some reason, those solutions are not working and I am kinda losing my mind.
The sheet names are all in column A
They are named after dates (format mm-dd-yy) <- I'm assuming this is the problem?
The cell that I am trying to reference is always in O1 on every sheet in the workbook.
I have tried:
=INDIRECT(A1&"!O1")
=INDIRECT("'"A1"'&!O1")
and a few other amalgamations. Again, I have looked into so many other solutions at this point I am just left with asking for help with my situation, which is apparently unique (or more likely it is some blaring user error). Please help me before immediately removing the post.
If I have this right, the names of your sheets are dates, and you have the names listed as dates in Column A. So, they will appear as dates, but are actually Excel's background number for a date (days since 1/1/1900).
If you use the Formulas tab in the ribbon to Evaluate Formula, you should see the date pop in to your formula as a 5 digit number.
If you are not doing anything else with these dates, you could try selecting column A and formatting as text. This solved the issue in my test setup. This will still work if you are using the date for other functions, but you will have to tell Excel it's a date using DateValue()
After formatting Column A as text, I used =INDIRECT("'"&A1&"'!O1")
Try,
=indirect(text(a1, "\'mm-dd-yy\'\!\O\1"))

Using the 'TODAY' function

My spreadsheet is to show me how many days active a certain field has been.
For this I am trying to find a formula which will automatically take the entered date from one cell and deduct it from "todays" date.
As an example I have used =DATEVALUE("22/04/2017")-TODAY() - and although this works, i am unable to drag the formula down into other cells, to auto populate when a date has been entered/ amended. I'm having to enter the formula above every time, and if the date changes, as an example from the 22/04/2017 to the 20/04/2017, I would have to manually amend the formula too. How can I get it just pick up the date in that particular cell and deduct "today" from it?
Sorry if i'm rambling, I just don't know if I'm explaining myself properly.
Thank you
Typically, 'how many days active a certain field has been' would be a positive number (i.e. the number of days). Reverse the subtrahend and minuend to get a positive integer like this,
=today()-a3
To avoid getting 5/15/2017 or 42,870 as the result when A3 is blank, check to see if there is something in A3 before attempting subtraction.
=if(len(a3), today()-a3, text(,))

Excel - find nth match

I created a like to follow the inventory on an item.
I'm looking to find "What's the next date of availability?"
I found my answer with a index match function, but the problem is :
For each orders, what's available to promise... when my Running Total is not covered by the next "stock Arrival" how to find the "2nd" best match (next arrival)..
Maybe I'm overthinking this..
Here is my workbook :
https://drive.google.com/open?id=0BwbUB7pydqnfemQwQW9JaFoxbGs
Anyone is an Excel guru?
You can check edited file. This formula is very comlicated, but it takes into account that, what would be if the second
Put this array formula and press CTRL+SHIFT+ENTER and fill down:
=IF(K2=0,INDEX(A3:E$17,MATCH("05 - arrival",A3:A$17,0),5),IF(SUM($G$2:G2)+INDEX($G$2:$G$17,SMALL(IF($G$2:$G$17>0,ROW($G$2:$G$17)),1)-1)+INDEX($G$2:$G$17,SMALL(IF($G$2:$G$17>0,ROW($G$2:$G$17)),2)-1)>0,INDEX($E$2:$E$17,SMALL(IF($G$2:$G$17>0,ROW($G$2:$G$17)),2)-1),INDEX($E$2:$E$17,SMALL(IF($G$2:$G$17>0,ROW($G$2:$G$17)),3)-1)))
Hope this will help.
I think you're looking for the next instock date? For example, L2 shows the next arrival date is 11/25/16, but on that date you can clearly see that it will be Not Instock. So, instead you would like to tell the customer when it will be instock - see column M - which shows the date of the next instock arrival date.
To do this, I used a 'adjusting' range INDEX() and MATCH() formula: =INDEX(E2:$E$17,MATCH("Instock",I2:$I$17,0))
Notice there are no $ dollar signs around E2 and I2. This will allow the range to adjust as the formula is copied down, making sure the previous dates are not in the formula (only present and future dates - nothing from the past).

What formula to use in Excel when trying to process dates

I have a Excel database and I have three columns. One is "holiday start date" and the other is "holiday end date" and "Available?" what I want to do is basically create a formula to see when the person is on holiday, the Available box will show Yes or No. The formula needs to recognise the date and only say that this person is not available if the holiday is within today to a fixed time. Anything else to become available.
I have tried over and over to try and get this formula but can't seem to get it to work here is my attempt so far.
=IF(AND(AE9(DATE<=2/9/14),AE9(DATE<3/9/14),AF9(DATE>3/9/14)),"GOOD","BAD")
I am assuming you have the date effective in some cell. I am assuming this to be today for simplicity. If it is not, you simply have to replace today() with the cell number that has value for date effective!
I am also assuming the following headers on the following Cells.
AE1 : Holiday Start Date
AF1 : Holiday End Date
=Today() : Gives the current date. Should be replaced with the date to be tested for!
if(or(not(and(Today()<af9,today()>ae9)),today()<ae9,today()>af9,"no","yes")
or simply
if(and(today()>af9,today()<ae9),"yes","no")

Resources