ID first_name last_name age grade address phone_num
1 John Doe 12 6 444 New york xxxxxxx
I want to automatically add value when the date has reached 31 May in grade column.
Let say if the date is reach 31 May then grade should be 7.
Thank you in advance
I have tried:
I2 = 6
E2 = 31/05/2022
=if(TODAY() = I2,E2+1,E2)
I'm not sure if this is the right way to do it.
Shouldn't that be (to fill in in cell "I3"):
I2 = 6
E2 = 31/05/2022
=IF(TODAY() = E2,I2+1,I2)
Related
Good Afternoon All
Its been a long time since I've used Excel and have become stuck and I hope you can help
Column O3 = 3
Column P3 = 4
Column Q3 = =IF(P3<=O3,MAX(0),IF(P3>=O3,MIN(2),IF(P2=O2+1,MAX(1))))
If PAR = 3 (O3) then if I score 3 or less (P3) I want to show 0 (Q3), if I score 4 I want Q3 to show 1 (Q3), If i score 5 or above I want to show 2 (Q3)
Thanks
Wayne
Wyane,
I think your macro must be like this :
=IF(P3<=O3,0,IF(P3=(O3+1),1,2))
If P3 <= O3 = 0
If P3 = O3+1 = 1
Else 2 (score 5 and above)
I am trying to use the index with match function to give me the order of people based on their rankings. My data is something like this:
A B C
1 Rank Name Score
2
3 1 Joe 100%
4 3 Bob 80%
5 1 John 100%
6 2 Dan 90%
7
8 RankOrder Name
9 1 =index(b3:b6,match(1,a3:a6,-1)) Result = Joe
10 1 =index(b3:b6,match(1&<>"b9",a3:a6,-1)) Result = John **HELP
11 2 =index(b3:b6,match(1&<>"b9&b10",a3:a6,-1)) Result = Dan **HELP
The first formula is to find who has a ranking of 1 or greater, then the second and third formula is where I'm struggling. I need to find who the has the next ranking closest to 1 but has not already been outputted in cell B9. Then the next formula would be the same but not someone that's been outputted in cell B9 & B10. Hopefully this make sense.Thanks!
Use index and aggregate with countif for aggregate's k factor.
=INDEX(B$1:B$6,AGGREGATE(15,6,ROW($3:$6)/(A$3:A$6=A9),COUNTIF(A$9:A9,A9)))
I have three columns in Excel 2010:
Name
Activity
Person_Days
a pattern looks like this:
John | Activity_A | 2
John | Activity_B | 10
John | Activity_C | 5
Mary | Activity_A | 2
Mary | Activity_D | 12
...
I want to make an extra column that tells me if a person is working 1-30% of the time, 30-60% of the time or 60-100% of the time. Maximum number of person days is 18.
How can I make a formula in Excel which calcultes that?
How about try the SUMIF formula?
=SUMIF(A1:A5, "John", C1:C5)
The above would check cells in A1 to A5 for the value "John" and sum the contents of C1 to C5 where the A column value is "John".
Take that and work out your percentage using your 18 person days. Then just throw in some conditional formatting to show colours for your percentage breaks.
Above would need tweaked to give you exactly what you want but the core idea should work.
SF
Excel Help:
How to find middle value in excel given 35-39 lbs. I want the answer as 37(Middle number in range)?
For Example in Column A below:
A
----
35- 39 lbs
40- 45 lbs
The answer should be
A
----
37
43
And How to retain only the first value for above example
A
----
35
40
One is the "Average" =Average(35,39)=37 and the other is the "Min" =Min(40,43) =40. If you want the physical middle number in a group like '35,36,37,40,43' you can use "Median" =median(35,36,37,40,43) = 37
One option is as follows
Say Cell A1 = 35- 39 lbs
In B1, type = =MID(A1,1,2) to extract 35.
Then, in C1, type =MID(A1,5,2) to extact 39.
In D1 for instance, you can now average C1 and B1 with =AVERAGE(B1, C1).
I am looking for some help with a formula. On my 'data' sheet, I have data in the format below:
A B C D E F G H I J
1 UID RecordType HCode AdmittedDate Forename Surname DOB Sex STDate RDate
2 87962 STAsses STIV1 01/01/2012 Mark Jones 13/07/1978 Male 09/12/2012
3 89658 Transfer GLSI2 01/01/2012 Alison Aitken 20/12/1956 Female 08/07/2013
4 84563 Discharge JHOP1 01/01/2012 David Beckham 09/08/1987 Male 08/07/2013
5 89654 STAsses STGE1 01/01/2012 Andrew Macbeth 27/09/1976 Male 08/07/2012
6 89867 Transfer KIND1 01/01/2012 George Deas 08/05/1989 Male 08/07/2013
7 87962 Transfer STIV1 01/01/2012 Mark Jones 13/07/1978 Male 04/03/2013
8 89654 Transfer STGE1 01/01/2012 Andrew Macbeth 27/09/1976 Male 12/08/2012
On my 'report' sheet, I have the following table set up:
B C D E F
4 HospCode RecordType Jul-12 Aug-12 Sep-12
5 STGE1 Assessments
6 Transfers
7 Discharges
8
I would like to do 2 things.
In D5, E5, F5, a formula is needed to return the number of 'STAssess' records for HCode 'STGE1' from the data sheet, which were completed in the month shown in D4 of the 'report' sheet (Jul-12). The dates for these records are in column I of the data sheet - 'STDate'.
I've tried using SUMPRODUCT which works to an extent, but I'm having difficulty bringing back records only completed in July. I need the formula to be dynamic in that it only brings back results for the month entered in D4 (so a date range built into the formula isn't doing the job).
In D5, E5, F5, I need to bring back the number of records from the 'data' sheet, which have 'Transfer' in column B (RecordType), 'STGE1' in column C (HCode) and a date in column J (RDate) which falls in the month specified on D4 of the 'report' sheet (Jul-12).
Anyone got any ideas? The data sheet is actually going to be an external .csv file which can't be manipulated. I don't mind using other hidden sheets to do any sorting that needs to be done, provided that this can be setup so that when the data is brought in, no extra work has to be done.
Thanks!
For both of your questions you can use COUNTIFS. It is easier to understand (for me) and compatible with Excel 2007 and newer.
First question:
=COUNTIFS(DATA!B:B,"STAsses",DATA!C:C,$B5,DATA!I:I,">="&D$4,DATA!I:I,"<"&DATE(YEAR(D4),MONTH(D4)+1,1))
Second question:
=COUNTIFS(DATA!B:B,"Transfer",DATA!C:C,$B5,DATA!J:J,">="&D$4,DATA!J:J,"<"&DATE(YEAR(D4),MONTH(D4)+1,1))
And these formulas can be dragged across your needed range.
Here is an example formula that you could use for the D5 cell, does that point you in the right direction?:
{=SUM(IF($B$2:$B$8=$B14,IF($C$2:$C$8=$A14,IF($D$2:$D$8=C$13,1,0),0),0))}
This is an array function so you must enter it without the {} at each end and use Ctrl + Shift + Enter to enter the formula.
If your summary table looks like
HospCode RecordType 12-Jul 12-Aug 12-Sep
STGE1 STAsses 1 0 0
STGE1 Transfer 0 1 0
STGE1 Discharges 0 0 0
And your data is in a table called Table1, then in D5
=SUMPRODUCT((Table1[HCode]=$B5)*(Table1[RecordType]=$C5)*(MONTH(Table1[STDate])=MONTH(D$4)))
I'm not sure what you mean by 'bring back', but assume you mean that you want to show it when RecordType = column C and when the RecordType = "Transfer" and the RDate is in the right month. Then
=SUMPRODUCT((Table1[HCode]=$B5)*(Table1[RecordType]=$C5)*(MONTH(Table1[STDate])=MONTH(D$4)))+SUMPRODUCT((Table1[HCode]=$B5)*(Table1[RecordType]="Transfer")*(MONTH(Table1[RDate])=MONTH(D$4)))