I am trying to track the status of a project: I have 4 columns each with date format. A status column which would show "OVERDUE" if the date in column A is over 12 days. "CURRENT" if less than 12 days. However, if a date is entered in column D the status would show "COMPLETE".
I am very new at this,
thanks for any help!
=IF(D1="",
IF(A1-NOW>12,"OVERDUE","CURRENT"),
IF(CELL("Format",D1)="D1","COMPLETE",
IF(A1-NOW>12,"OVERDUE","CURRENT"))
Let me know if you want some indicator for whether a value is entered in D and is not in the correct format.
Related
I have a rather big (long) table and need to do something quite simple but I'm currently with a sort of blackout...
Imagine that you have:
Date 1 Value 1 Date 2 Value 2 Date 3 Value 3 Date of MAX
... ... ... ... ... ... ????
I want to deploy in ???? a formula that will result in the date at which the maximal value (between Value 1...3) was registered. For instance:
Date 1 Value 1 Date 2 Value 2 Date 3 Value 3 Date of MAX
20160501 10 20160722 47 20161002 9 20160722
meaning, the Date of MAX is of Date 2 because that was the date at which the MAX was measured.
Thanks in advance.
You could do a more general solution using offset:-
=MAX(N(OFFSET(D2,0,COLUMN(A:D)*3)))
to find the largest value - put this in (say) R2.
Then find a match for it and pick out the corresponding date:-
=OFFSET(C2,0,MATCH(R2,N(OFFSET(D2,0,COLUMN(A:D)*3)),0)*3)
assuming the dates and values are every third column.
These are array formulae and must be entered with CtrlShiftEnter
If the last value really was in P21 you would have to give a row offset as well as a column offset.
OK, I found a dirty but simple solution (don't know why I didn't think of it at first):
=IF(G2>=MAX(G2,J2,M2,P21),F2,IF(J2>=MAX(G2,J2,M2,P21),I2,IF(M2>=MAX(G2,J2,M2,P21),L2,O2)))
where the pairs (4 of them) are at FG, IJ, LM, OP. Not elegant but does the job.
I have this set of data:
A B
1 1/1/15 6:05am
2 1/1/15 10:00am
3 1/2/15 6:10am
4 1/2/15 11:58am
Data in column A is a valid Excel date field and data in column B is valid Excel time field.
What I am trying to get is the time of the first call per day. Example:
1/1/15 6:05am
1/2/15 6:10am
I have tried PivotTables with sort and groups but that did not work. Any ideas/suggestions are most welcome.
In C1 copied down to suit please try:
=MIN(IF(A:A=A1,B:B))
with Ctrl+Shift+Enter.
However a PivotTable could well be a suitable alternative:
I have table in excel with some columns. There is ID_client and date column, but one client may appear more than once, with different date. My task is to get for all clients rows with the oldest date.
For example, for table:
ID_client date
1 2014-03-01
2 2011-01-06
1 2000-01-15
2 2012-03-16
2 2015-09-26
I should receive:
ID_client date
1 2014-03-01
2 2015-09-26
Thanks in advance for any help.
Step1:
You can go to home>Sort & filter> Custom sort
select date column>newest to oldest
Step2:Select both column> go to DATA > Remove duplicates
Select only ID column there and hit ok.
You should get the desired output.
i want to find the earliest date between the DOB OF FATHER & DOB OF MOTHER in sheet1, by matching the employee code and having the value in earliest date in sheet 2.
Sheet 1
Employee Code DOB OF FATHER DOB OF MOTHER
28883 29/12/1987 28/01/1988
83933 19/11/1988 12/07/1988
55428 21/01/1938 03/10/1938
99999 18/03/1982 11/02/1980
Sheet 2
Employee Code Earliest Date
28883
99999
83933
55428
Sheet1:
A B C
1 Code FatherDOB MotherDOB
2 28883 29/12/1987 28/01/1988
3 83933 19/11/1988 12/07/1988
4 55428 21/01/1938 03/10/1938
5 99999 18/03/1982 11/02/1980
Sheet2:
A B
1 Code EarliestDOB
2 28883 29/12/1987
3 99999 11/02/1980
4 83933 12/07/1988
5 55428 21/01/1938
You can combine two vlookup operations with a min operation:
=MIN(VLOOKUP(A2,Sheet1!$A$2:$C$5,2,FALSE),VLOOKUP(A2,Sheet1!$A$2:$C$5,3,FALSE))
The first vlookup gives you the father's date of birth (using the entire table range but extracting the second column) and the second gives you the mother's date of birth (extracting the third column).
The earliest is then simply the minimum of the two.
If some of the dates may be blank, the easiest solution is probably to set up a D column on sheet 1 to evaluate the earliest date, ignoring blanks. For example D2 would have (split across lines for readability):
=IF(ISBLANK(B2),
B3,
IF(ISBLANK(C2),
B2,
MIN(VLOOKUP(A2,$A$2:$C$5,2,FALSE),
VLOOKUP(A2,$A$2:$C$5,3,FALSE))))
If one of the cells is blank, it uses the other, otherwise it chooses the earliest.
Then you just lookup that new column D in the formula on sheet 2 (example for B2):
=VLOOKUP(A2,Sheet1!$A$2:$D$5,4,FALSE)
I wanted to point out a limitation that has been in Excel forever.
Excel internally doesn't handle dates before 3/1/1900 (March 1, 1900) correctly.
it thinks that 1900 was a leap year
that the day before 3/1/1900 is 2/29/1900
if you enter pass Excel through automation any date between 12/31/1899 and 2/28/1899, it will think it is 1/1/1900 - 2/29/1900
if you attempt to pass it through automation 12/30/1899, it will think it is January 0, 1899.
if you attempt to pass it any date before 12/30/1899, it will throw an error
Various example dates that you can pass to Excel through automation:
Date Excel
-------- ------------------------------
18651001 throws error going into Excel
18991201 throws error going into Excel
18991229 throws error going into Excel
18991230 shows as "12:00:00" in Excel; it refuses to show a date portion
18991231 shows in Excel as 1/1/1900
19000101 shows in Excel as 1/2/1900
19000102 shows in Excel as 1/3/1900
19000103 shows in Excel as 1/4/1900
19000201 shows in Excel as 2/2/1900
19000228 shows in Excel as 2/29/1900
19000229 Feb 29 1900 was not a real date; Excel takes it
19000301 shows in Excel as 3/1/1900
19000601 shows in Excel as 6/1/1900
19001231 shows in Excel as 12/31/1900
19010101 shows in Excel as 1/1/1901
20151128 shows in Excel as 11/28/2015
The VARIANT structure does dictate that a date must be after December 30, 1899 midnight as time zero:
2.2.25 DATE
DATE is a type that specifies date and time information. It is represented as an 8-byte floating-point number.
This type is declared as follows:
typedef double DATE;
The date information is represented by whole-number increments, starting with December 30, 1899 midnight as time zero. The time information is represented by the fraction of a day since the preceding midnight. For example, 6:00 A.M. on January 4, 1900 would be represented by the value 5.25 (5 and 1/4 of a day past December 30, 1899).
tl;dr: If you have any dates in Excel before March 1 1900 (e.g. the birthdate of the oldest woman alive), Excel will not perform the math correctly.
If you wish to display any date before 3/1/1900, it should be presented as text, rather than an actual date.
Anyone attempting to find the minimum date in a range needs to be aware of this limitation in Excel.
I have a data set where by i am required to show the sum of calls for a date and their call times also.
Here is an example of my data set for a few days for one extension
6/24/11 7:43:38 AM
6/24/11 8:10:23 AM
6/24/11 8:16:54 AM
6/24/11 8:20:45 AM
6/24/11 4:47:06 PM
6/25/11 12:38:43 PM
6/25/11 5:38:10 PM
6/26/11 7:32:53 AM
6/27/11 5:40:32 PM
6/28/11 3:46:05 PM
6/29/11 7:09:21 PM
6/30/11 5:59:54 AM
6/30/11 1:21:28 PM
6/30/11 5:59:00 PM
Is it possible to put this into a chart whereby we can see a sum of calls for a given date? If that makes sense.
Thanks,c
-=
I found the following post at Excel Timesheet
this fixed my problem.
Easiest way is to have a number of helper columns:
Example:
Column A through C contain the raw data for Extension 1-3
Column D through E contain the 'truncated' version of the time stamp into days
Column H through K would contain the frequency of calls for a given day and extension
Put the formula in E in order to get the truncated day, and expand it over the columns E-G
=DATE(YEAR(A3),MONTH(A3),DAY(A3))
Put the starting day of interest in Cell I2. For Cell I3 enter the formula
=I3+1
so you will have automatically incrementing days in that column, this is your 'bin' for the histogram you're about to make.
Count the number of times the value in E is found for a day in your bin
In J ( column counting calls per day for extension 1 ) enter the formula:
=COUNTIF(E$3:E$16,$I3)
drag this formula out.
Now you should have the data for your histogram/plot in columns I through L.
I found the following post at Excel Timesheet
this fixed my problem.
Excel Timesheet