Date Calculation issue - excel

Could anyone please help for below date calculations?
Datedif calculations getting error as shown in the snapshot.

Related

I've imported data from web in excel. When I try to use the AVERAGE formula, I get the #DIV/0! error and I dont know how to fix

I imported a table from web, and I wanted to start looking at MIN, MAX, AVERAGE, STDV etc. But I've encountered a problem with formulas always popping up as errors? And Im not sure how to fix this or what I am doing wrong. Any help would be greatly appreciated.
Thanks
I've attempted changing the values of the table to 'numbers' instead of 'general'
I also attempted to use AVERAGEA instead of just AVERAGE and that resulted in 0.00
Im not really sure what to try next
Your column is formatted as text. Format it to numbers or use VALUE formula inside: =AVERAGE(VALUE(K2:K15))

How to workaround average function in excel?

I've taken an online excel course and stuck at one of the exercise for average function.
In the image, the average function is showing error div/0
Note that TAX column values have been calculated by formula. Is that the reason for this error? I tried searching online but could not get any proper answers... can anyone please help? Thank you.
Formula applied in tax column =IF(AND(C2 < 100), "50","100")

How to calculate number of days in Excel

I have a date format like 2020-01-17.I would like to calculate number of days till today date. I'm trying it's like
=today() - B2
However it's not working.
Edit
I changed the format to 01/17/2020 and did
=today() - B2
The result comes as 3/23/1900.
This is wrong and I would like to see in number of days.
very simple
Check Out Image enter image description here
I think there are 2 issues that you're seeing here.
The result comes as 3/23/1900.
The reason you're seeing this result as 3/23/1900 is probably because of the format of the cell. Change cell format to number and you should see your result as a number.
Or you can also use the formula with a VALUE formula like so =VALUE(today() - B2)
I would like to calculate number of days till today date
You can always use a simple subtraction of the two dates.
You can also use the DATEDIF function and extract the difference between dates in Years, Months, Days and more. Example: =DATEDIF(today(), B2,"D")
Here is the documentation for this DATEDIF function.
Note: Below is the warning from Microsoft
Warning: Excel provides the DATEDIF function in order to support older workbooks from Lotus 1-2-3. The DATEDIF function may calculate incorrect results under certain scenarios. Please see the known issues section of this article for further details
You can you use the datedif fx link: https://exceljet.net/excel-functions/excel-datedif-function
=DATEDIF(B2,TODAY(),"D")

Count sum for range

I'm hoping you can help me, I tried to do this in the database but the data returned was wrong so I'm trying in Excel and my brain can't seem to work this out. Help would be most appreciated.
I'm trying to get the total call count for each Week, each Month and year (see table below) but can't work out the formula.
enter image description here
enter image description here

Average of dates between many years

I have a problem with calculation in Excel of average date (just need day and month) between dates of many years.
I tried this function:
=AVERAGE(IF(MONTH(D5:D56)=9;DATE(2010;9;DAY(D5:D56))))
Apparently, it just gave me average date of year 2010.
Please for any good advice.
Does this array formula do what you want?
=AVERAGE(DATE(2010,MONTH(D34:D56),DAY(D34:D56)))
Be sure to enter it using Ctrl-Shift-Enter.

Resources