Excel Consecutive Days with at least 60 minutes worked - excel

I have project worksheet. Each day I track how many minutes I work on different tasks.
How could I create a formula that counts the number of consecutive days where the total minutes is greater than 60?
The part the part I"m stuck on is the consecutive days part.
I believe this is possible but could someone point me in the correct direction?

Here is how you can achieve this directly:
=MAX(FREQUENCY(IF(B4:B10>=60,ROW(B4:B10)),IF(B4:B10<60,ROW(B4:B10))))
Paste the formula on B1 in your case and press CTRL+SHIFT+ENTER (not just ENTER). You will see an array (curly braces like this {} will appear before and after the formula automatically once you press CTRL+SHIFT+ENTER)
I'm assuming you want to include 60 also. Feel free to modify accordingly.
Note: Update the range as you require.

I think this problem is more complicated than it looks at first. The following formula could give a correct result:
=SUMPRODUCT(((B2:B8>=60)+(B2:B8<60)*(B4:B10>=60))*(B3:B9>=60))

Related

Calculating time difference between [h]:mm

I've got 2 fields in Excel that are formatted as [h]:mm and I need to find the value difference between them.
For example in G2 I have 4217:11 and in I2 I have 1703:11.
I know that the answer should be 2514:00 as it is 4217 hours 11 minutes minutes 1703 hours 11 minutes, however I can't figure out how to do this in Excel.
I've tried the simple minus formula, however I get a #VALUE error.
Any suggestions?
I just tried =G2-I2 and it worked fine for me ... if you're getting #VALUE error, then the data definitely isn't formatted like you think. Likely it's being formatted as text, and it just "looks" like it's in a time format.
One way to do it is to create a formula that rebuilds the value to what you want.
But it requires helper columns.
In J2 (or whichever is free)
=LEFT(G2;FIND(":";G2)-1)&":"&MID(G2;FIND(":";G2)+1;2)
In K2 (or whichever is free)
=LEFT(I2;FIND(":";I2)-1)&":"&MID(I2;FIND(":";I2)+1;2)
The above formulas will make text to the type of string you want.
Then in the next free column set the formating to [t]:mm as you said before and just do a =J2-K2
Sorry for the swedish but the formulas are above

Counting Number of Months between Two Dates in Excel

So I am attempting to simply count the number of months bewtween an earlier date and today, which will be in the B:B column; once the number of months have been counted, the result is then multiplied by 28, then added back to the original date. Note the requirement: Result >= Today, so basically if the result is less than today it needs to add another 28 days. The current formula I made only works if the dates are in the current year (and I am not 100% sure if this formula works, it appears to so far though.)
Here is my defunct formula, but maybe someone can get a general idea from my above comments and the below formula of what I am attempting to achieve here:
=IF(B89="","",IF(I89="X","LEG",IFERROR(IF((MONTH(TODAY()-B89)*28)+B89<TODAY(),(MONTH(TODAY()-B89)*28)+B89+28,(MONTH(TODAY()-B89)*28)+B89),"Future")))
Thank you in advance for your assistance!
Note: I just want to point out that the reference to I89 is insignificant in the above. I just didn't want to remove it in case I deleted the wrong parenthesis or some other typo, so I decided to leave in there. So basically you would not need to necessarily worry about the first two "IF" statements, nor the IFERROR, unless you just wanted to!
2ND EDIT: Okay I decided to strip down formula, original post's formula is above, the stripped version below:
IF((MONTH(TODAY()-B89)*28)+B89<TODAY(),(MONTH(TODAY()-B89)*28)+B89+28,(MONTH(TODAY()-B89)*28)+B89)
You should not use MONTH() for this purpose as this will lead to wrong results in some cases, and certainly when the B89 date is in another year.
Instead see how many days you are past the last multiple of 28 days since B89, and go back to that date (by subtracting), and then add another 28 to it:
=TODAY() + 28 - MOD((TODAY()-B89), 28)
The earliest date this can give is the date of tomorrow. If today should be an acceptable outcome of the formula, then replace TODAY() with TODAY()-1, which results in this formula:
=TODAY() + 27 - MOD((TODAY()-1-B89), 28)
How about something like this:
=IF(B89="","",IF(I89="X","LEG",IF(IF(B89<=TODAY(),B89+28*IF(AND(B89<TODAY(),TEXT(B89,"mmyy")=TEXT(TODAY(),"mmyy")),"1",(TEXT(TODAY(),"yy")*12+MONTH(TODAY()))-(TEXT(B89,"yy")*12+MONTH(B89))),"Future")<TODAY(),TODAY(),IF(B89<=TODAY(),B89+28*IF(AND(B89<TODAY(),TEXT(B89,"mmyy")=TEXT(TODAY(),"mmyy")),"1",(TEXT(TODAY(),"yy")*12+MONTH(TODAY()))-(TEXT(B89,"yy")*12+MONTH(B89)))))))
Got a little long now, but you have a lot of criteria :)

Count seperate EXCEL cells if value >0

Background:
This excel is to track the hours someone works and what days. It also needs to track the total days worked in a week.
Requirement:
The 'Total Days' column needs to count the Monday(M) to Sunday (S) columns if they are greater than 0
Previously I had a simple COUNTIF(H6:K6, ">0") or whatever it was, which worked well.
Now the user has added in extra columns for pay and charge rates each day, after the corresponding day, which has thrown the formula off, and the COUNTIF formula wont do the columns separately inside the same formula.
Snippet of excel layout
Also some clarification, In AZ1 for instance I would want it to count H1, K1, N1, etc up to Z1
If anyone could help me work out a formula, that would be great!
COUNTIFS uses AND logic, whereas, you need OR logic. Try something like:
=COUNTIF(A3,">0") + COUNTIF(B3,">0")+...
EDIT: Since that didn't work, this should do the trick:
=COUNTIF(H5,">0")+COUNTIF(K5,">0")+COUNTIF(N5,">0")+COUNTIF(Q5,">0")+COUNTIF(T5,">0")+COUNTIF(W5,">0")+COUNTIF(Z5,">0")
Try using the MOD function to determine the stagger of the columns. SUMPRODUCT and ISNUMBER can take care of the rest.
=SUMPRODUCT(NOT(MOD(COLUMN(H:Z)-8, 3))*ISNUMBER(H6:Z6))

My Excel sheet adds 5 cells and displays them in another cell. I want to see the running total instead of waiting for all 5 cells to be filled

I believe this should be a pretty simple solution but I really don't know how to go about it..
I have the following formula in cell C20 =SUM(I13:I17) This is my total wages for that week. Cells I13-I17 are for Monday - Friday and what I got paid that day.
I would like it to display a running total instead of waiting for all 5 cells to have a number in them. Currently it won't show anything in C20 unless all cells have something. I can't alter anything with the I13-I17 as they are filled by another formula.
I want to be able to see what I've currently earned that week instead of waiting until Friday when all 5 cells have then been filled.
I hope I've explained my self well enough on this. It seems like it would be a very simple thing but I can't figure it out.
Thanks for any help,
Kyle..
use this instead
=If(I13<>"",If(I14<>"",IF(I15<>"",IF(I16<>"",If(I17<>"",SUM(I13:I17),SUM(I13:I16)),SUM(I13:I15)),SUM(I13:I14)),I13),"0")

Counting Cells in a Range that Contains Formulas, Only when a Date is Returned?

Frequent browser, first time poster. Please go easy:
I have spent the last few days searching online, and on here for a solution to a problem I have encountered for the first time. I have a report that pulls from multiple worksheets. One column is a formula that does a VLOOKUP to another sheet and pulls back a date, if it exists. I then have a cell at the top of the sheet that calculates how many dates are pulled back out of all of the rows (to calculate % complete). This is where I am having the problem. I have tried variations of COUNTIF, COUNTA, COUNTBLANK, and so on, and formulas trying to reverse calculate,
=SUM(C4)-COUNTIF(Table3[2014 Process Date],"")
At first it appeared to work, but in this example, I had 1949 rows, and dates only populated in 7 of those rows. In theory it should return 7. Instead it is returning 237. I have done multiple filters, and manually reviewed the data in the column, and only 7 dates are there. The column has the VLOOKUP in and IFERROR nest,
=IFERROR(VLOOKUP(A12,Table_TaxData.accdb3[#All],240,FALSE),"").
I am guessing I am overlooking something silly, and was hoping someone would be able to help steer me in the right direction, or let me know what I am missing. Thanks in advance for any help!
Wow, looks like I need some more coffee! Thank you, I guess I assumed that it would be much more complicated than that. I just threw in
=COUNT(Table3[2014 Process Date])
And it worked like a charm! Thanks again!
If I'm reading your formula correctly, the target cells hold either the DATE, or a blank "".
If so, you can do a COUNTIF and do this:
=COUNT(B:B)
to get # of dates.
or
=COUNTA(B:B)-COUNT(B:B)
to get # of blanks.
(I used column B, not sure where your final values are in you're looking for - adjust accordingly)

Resources