I am trying to combine some IF statements that give me effectively 4 results, I will just use A1, B1 etc for ease
In A1 I enter a date
In E1 I have the formula =IF(ISBLANK(A1),"",A1+21) this generates an expected completion date in that cell
In F1, I would put a actual completion date manually
What I want it to do is generate the following in G1
e.g. E1 has 04/05/15 and a blank in F1, I want this to give me OVERDUE in H1
E1 has 04/05/15 and a date 03/05/15 in F1, I want this to give me CLOSED in H1
E1 has 04/05/15 and a date 05/05/15 in F1, I want this to give me CLOSED OVERDUE in H1
E1 has 27/05/15 and blank in F1, I want this to give me OPEN in H1
I can get the first two by using the formula (for some reason the whole formula doesnt come up on here) =IF(AND(ISBLANK(F1),F1
W1 is a cell that generates a date using the TODAY function
I'm stuck on the other two lines and how to combine it into one formula, I've tried various ways, but mostly I get "too many arguments"
This may make it clearer as I havent got a high enough rep to post an image
Data manually entered into "Date Informed"
I2 04/04/15
I3 04//4/15
I4 04/04/15
I5 04/05/15
Formula generates "expected completion date"
M2 =IF(ISBLANK(I2),"",I2+21)
M3 =IF(ISBLANK(I2),"",I2+21)
M4 =IF(ISBLANK(I2),"",I2+21)
M5 =IF(ISBLANK(I2),"",I2+21)
Data manually entered into "Actual completion date"
N2 None
N3 28/04/15
N4 23/04/15
N5 Blank
Results required in "Status"
P2 OVERDUE
P3 OVERDUE AND CLOSED
P4 CLOSED
P5 OPEN
Based on what you have said I think this may help
Col A Col E F G
04/04/15 25/04/15 OVERDUE
04/04/15 25/04/15 28/04/15 OVERDUE AND CLOSED
04/04/15 25/04/15 23/04/15 CLOSED
04/04/15 25/04/15 OPEN
In cell G1 I have the following formula that you need to drag down:
=IF(AND(E1<TODAY(),ISBLANK(F1)),"OVERDUE",IF(AND(E1>=TODAY(),ISBLANK(F1)),"OPEN",IF(AND(ISNUMBER(F1),F1>E1),"OVERDUE AND CLOSED","CLOSED")))
In words (as per the IF statements):
If the expected completion date is in the past and no completion date given then it is overdue
If the expected completion date is in the future and no completion date given then it is open
If the actual completion date was later than the expected completion date then overdue and closed
If the actual completion date was earlier than the expected completion date then closed
Related
This is hard to explain...
I have a report that I pull from our MRP system that gives me a Due-Date, a quantity required, and an item number. There will usually be several rows with the same item number each representing a different sales order.
I have another report that gives me the on hand quantity for each item. In this report, each item is listed only once.
I need to get the Due-Date that corresponds to the row that will use up the last of my inventory. (Inv. runout)
Due-Date
QTY-REQ
ITEM
4/27/21
5
C
4/28/21
7
A
4/29/21
5
B
4/30/21
1
B
5/1/21
13
A
5/2/21
4
A
5/3/21
12
C
5/4/21
1
A
OHQ
ITEM
INV. RUNOUT
10
A
formula here, Result should be 5/1/21
5
B
result should be 4/30/21
10
C
result should be 5/3/21
I hope this makes sense, if not, please let me know what I can answer to help with this.
-Nick
You'll need a new column on the first report using IF(SUMIFS( to only show the date of lines where the stock runs out at or before that date. Then in the second report, use MINIFS(), a fairly new function, to find the earliest date in that column that matches each product.
In the below example I'm assuming that both of the above reports shown are columns A B and C, in the same excel file, on sheets called Report1 and Report2.
In cell Z2 on Report1, enter the formula IF(SUMIFS(B:B, A:A, "<=" & A2, C:C, C2) > INDEX(Report2!A:A,MATCH(Report1!C2,Report2!B:B,0)), A2, "") and copy down for all rows. This will only display the date where the stock has run out by that date.
In cell C2 on Report2, enter the formula =MINIFS(Report1!Z:Z, Report1!C:C, Report2!B2) to get the earliest relevant date displayed from the formula above.
=IF(OR(AND(E4="Active",G4<TODAY()),ISBLANK(G4)), "Overdue", "OK")
That is my current formula. G4 = date they last completed training, E4 = column stating whether they are active or not - if not then I don't want it to display Overdue. If G column is blank & E column is active I want it to display Overdue.
The problem:
I have got a database of staff names, and then whether they are active, and then if they are due training. I need a formula that takes into account if they are active or not, then if the date their training is Overdue (if the date is 1 year + past the completion date of their last training) and to display this in a new column as Overdue or OK. Ok being they don't need to book training. Additionally if the G column is blank it should treat that as over a year since the last training.
So only if the staff are "active" should it display Overdue in the final column. (as well as the date of G column being over a year before the current days date).
Im struggling to get my above formula to work :/ any assistance would be much appreciated
Ignoring leap years (for simplicity), maybe:
=IF(AND(E4="Active",G4<TODAY()-365), "Overdue", "OK")
I trying to find the correct code to move my formulas over x number of cells. The x would represent sales lead time. Lets say I make a January sale, but that revenue wont actually be received until 7 months later. So for Jan I wont receive until July, for Feb I wont receive until August, for March I wont receive until September and so on.
I'm looking for something to automate or shift my formulas that total my sales over based on a lead time cell. So lets say I change my lead time to 5 months everything shifts over to reflect 5 months instead of 7.
Any help would be greatly appreciated.
Hope thats not too confusing.
Thanks for any help!
You seem to be looking at the problem from the wrong end: Instead of asking when your January sales proceeds will be received, try asking which proceeds you will receive in July. Then you arrive at a structure like this:-
Column A = Date of sale
Column B = Description
Column C = Sales amount
Column D = Expected delay in months
Column E and up = Jan, Feb, etc. one column for each month
Write the starting date in cell E1, say 1/1/2017.
In F1 paste this formula: =DATE(YEAR(E1),MONTH(E1)+1,1)
Format the range E1:F1 as 'Custom' using the string MMM yy
Copy F1 to the right as far into the future as you require
Now you have a column for each month. If you change the value in E1 all captions will change accordingly. That's good when you need a new sheet for next year.
Write this formula in E2: =IF(MONTH($A2) + $D2 = MONTH(E$1), $C2,0)
Copy right and down as far as you require
Now, make an entry. Say on Jan 17 you had a sale of $1200 and you expect to receive the money 6 months later.
Enter the date in column A = 17/1/2017
Enter the amount in column C = 1200
Enter the expected delay in column D = 6
The amount appears in the July column. Change the value in column D to 3 and the amount moves to April.
All the other columns show a zero. If you don't like that, go to File ->Options -> Advanced >>Display options for this worksheet = uncheck the checkbox for "Show a zero in cells that have zero value".
A B C D E F G
1 Date: 9/15/2016 9/16/2016 9/17/2016 9/18/2016 9/19/2016 9/20/2016
2 Points: 0.5 1 - - 0.5 1
The above data is on tab 1 of an excel spread sheet
And below are fields on tab 2 of the same excel spread sheet:
A B
1 DATE: Points
2
3
4
5
I am trying to write a formula that will go through the dates and points rows on tab 1 and when it finds a date with a corresponding point it will populate that date in tab 2 under the Date column. Simple enough right? Well here's where I'm running into problems, I need a formula to include the following criteria:
1) If the date does not have a corresponding point in the second row on tab 1 it will skip it and move on to the next date to validate it and so on
*note- I also need the Points column on tab 2 to populate with the corresponding date, but I believe a simple HLOOKUP formula will work just fine
2) I would like to have the formula to where it can be duplicated on tab 2 cells A3,A4,A5 and so on, but as an example: if A2 has date of 9/15/2016, when the formula in A3 is checking for dates with corresponding points in tab 1, it will skip the date in tab 2 located in A2 since it's already been used
Below is a picture of the above data in case it didn't come out right, and thanks for the help!!
Use this array formula:
=IFERROR(INDEX('Tab1'!$B$1:$G$1,MATCH(1,('Tab1'!$B$2:$G$2<>"")*(COUNTIF($A$1:A1,'Tab1'!$B$1:$G$1)=0),0)),"")
Being an array formula it needs to be confirmed with Ctrl-Shift-Enter when exiting edit mode instead of Enter. If done correctly then Excel will put {} around the formula.
This will create a list as it is dragged/copied done. The list will be in the same order as the list on tab1.
I want to use the Max/Min function to calculate the minimum number up to the current row, but not count anything after that row. See example below:
A B C
1 10 =MIN(A1:A1) I Want B1 to only count MIN from A1 to A1 from here, then
2 14 =MIN(A1:A2) from here I want B2 to count MIN from A1 to A2,
3 9 =MIN(A1:A3) Then A1 to A3,
4 6 =MIN(A1:A4) etc,
5 14 =MIN(A1:A5) etc.
I could go back and update each row manually, but I have over 700 rows that I want all this to apply to. Is there anyone who can help me with a solution to this problem?
Use this formula in B1, and copy downwards:
=MIN($A$1:$A1)
This is called maintaining referential integrity while writing any excel formula. It should give the desired result on copy towards right or downwards.