# A Formula Which Is Calculate 4-5 Dates Formula In One Cell

Oct 7, 2009i need a formula for which calculate all cell (calculating years months and days formula). FIND ATTACHED .xls file i need a answer in cell highlited in yellow color.

i need a formula for which calculate all cell (calculating years months and days formula). FIND ATTACHED .xls file i need a answer in cell highlited in yellow color.

Is there a way to calculate an age based on Date of birth and current date?

View 3 Replies View RelatedCalculate dates as The Number Of Days, Months Or Years Between Two Dates

The two formulas I tried below show the wrong output when trying to figure the days between 12/8/2011 to 1/2/2012. It should show 0 years, 0 months, 24 days, not 138 days.

I did notice when the day of the month on the start date is before the day of the month of the end date, the formula seems to work. Ref. the second dates on the first example.

Example 1

Start End

12/8/2011 1/2/2012 = 0 years, 0 months, 138 days

Wrong display. should show 0 years, 0 months, 24 days

Start End

12/1/2011 1/2/2012 = 0 years, 1 months, 1 days

Note that when the start date "day", (1), is before the end date "day", (2) the formula seems to work.

First formula used above:

=DATEDIF(B3,C3-(MOD(B3,1)>MOD(C3,1)),"y")&" years, "&DATEDIF(B3,C3-(MOD(B3,1)>MOD(C3,1)),"ym")&" months, "&DATEDIF(B3,C3-(MOD(B3,1)>MOD(C3,1)),"md")&" days"

Example 2

Start End

12/8/2011 1/2/2012 = 0 years, 0 months, 138 days

Should show 0 years, 0 months, 24 days

Second formula tried above:

=DATEDIF(B10,C10,"y") & " years, " & DATEDIF(B10,C10,"ym") & " months, " & DATEDIF(B10,C10,"md") & " days"

find the formula to calculate how many weeks between two dates for example. I how many weeks between

December 23, 2013

January 5, 2014 = 2w

January 6, 2014

January 19, 2014 =2w

January 20, 2014

February 2, 2014

Excel formula to calculate period between multiple dates.

Column A has first arrival

Column B has first departure

Column C has second arrival

Column D has second departure

Column E has third arrival

Column F has third departure

Column G has forth arrival

Column H has forth departure

Column I has fifth arrival

I need total period stay from all these columns.

attached is an example of a timesheet we use.

now after lengthy discussions the comany say its not 'in their interest' to use acess so i'm stuck with excel on this one.

I need to sum a column on many critiera, which i feel maybe a job for the trusty old =SUMPRODUCT. But thing is i need to sum a column based on a date range, Rate, Day.

I have manually typed in the number i think it should produce but as far as formulas go

1st off need to calcualte date range, which is situated on the top of the spreadsheet.

2nd some how tell the formula that Normal overtime is either classed as rate 1 Saturdays classed as 1.5 and sundays and bank holidays classed as 2.

I have a Training Matrix with "Main", "Leavers" and "Reports" sheets. (can email it but can't upload it here; it's 534kb and I can't make it smaller)

In the "Reports" sheet I need to fill "Site Procedural Training" - "Number of people trained in period".

The periods are :

25/12/11 - 31/03/12

01/04/12 - 30/06/12

01/07/12 - 29/09/12

30/09/12 - 29/12/12

The source of data will be the "Main" and "Leavers". The data are dates in these sheets; each date = 1

The formula needs to look in to "Main" and "Leavers" and if it finds a date which fits in the required period in "Reports" then return it as 1. If it finds 300 dates then returns 300.

I have two date columns, a start date and end date. Another columns tells me the number of days between these two columns. It may return 45 days which actually straddle 3 different months.

My aim is to identify between this date range how many days in Apr 14. Then in the next column howmany days in May 14 etc

So on the spreadsheet Id have 12 columns for each month of the year. in Apr 14 for each row between the given date range I want it to tell me how many days are actually in April. Id then copy that formula into the May 14 column.

I'm trying to make a formula to calculate the difference in a date between two dates. For exaple, in my business we have a due day for something. So the due date could be Feb 10, we need to know if it was done on time, late, or early. So I've gotten it to display late by doing this: =IF(B2>A2, "Late", (A2-B2)) But then I can't figure out how to incorporate this: =IF(B2=A2, "On Time") or =IF(B2<A2, "Early").

I would like to displaly this all in one cell. So if the due date is Feb 10 and it's turned in Feb 8 it's early, turned in Feb 10 it says on time, turned in Feb 11 it's late. I also tried this but it didn't work: =OR(IF(B2>A2,"Late")*IF(B2=A2,"On Time")*IF(B2<A2,"Early"))

I'm using Excel 2003 & Windows XP Professional.

I have two sets of data tables. One contains Number, Name & Date. The other contains amounts which those people have paid in 2007, 2008, 2009 & 2010. So in the below Jones has paid a total of $580 over those years, Smith has paid a total of $650 over those dates & so on.

The amounts in 2007, 2008 etc are full year amounts. I'm after a formula that can calculate the amounts for part years based on the dates from C1 to C11 by number (or name).

I've got what I think the results should be (I think with some rounding problems), but my real data has much more data.

I've got a spreadsheet where the start date is amendable and this is what I wanted. E.g. start date is Jun-14 and I want the formula to to calculate annual salary divided by 12 in each month from June onwards until Mar-15 (Financial year is April to Mar) and the same way to not show anything in April or May as they started in June... How can i achieve this please as I tried IF statements and it doesn't recognise dates and years...

Link: [URL] ....

I'm trying to calculate the number of days between dates in column A and B. I've looked at the examples in this site and thought I used the formula correctly, but the cell returns an error message when I type: =DATEDIF(A1,B1,"D")

View 7 Replies View RelatedI have a file wiht 2 sheets, on one sheet I have a macro that opens 25 other excel files and pastes information into the sheet in a specific order. Then on the "main" page I have different calculations based on the information from the other sheet.

The Information is listed in a row so for example B2:M2 or B3:M3. If a value has not been assigned the vcell will be empty (No formula or anything, completely empty)

The Value in the cells will be between 0 and 100 (its a score from 0-100) so in the "main" page I want a formula that calulates the LATEST score (It will always be the first one on the furthest left and the latest one to the furthest right). Is there any easy formula to calculate this?

For example:

----B-----C-----D-----E-----F-----G-----H-----I-----J-----K-----L-----M

2|-10----30----75----85----93----12---12

So in the example I2:M2 is empty so the latest score would be H2 so thats the value I want to show on the main page.

i'm not sure how to describe this. i've never had to do this before. here is what i'm trying to do. and it's not working.

=MIN(B2:B(G2-G3))

basically instead of saying =MIN(B2:Bx)....i want the "x" to be variable based upong the G2-G3 condition. can this be done some other way?

Is it possible to use a formula to calculate a cell reference within a formula? e.g. is there some way I could reference cell C47 in a formula by saying C(40+A2) where A2 contains the value 7. I often want to sum a certain number of cells in a list, from the first one to the nth one and need to be able to calculate rather than hard-code n.

View 5 Replies View RelatedI have a row of data starting in cell E4 that could, theoretically, go to the far right end of the spreadsheet. I need to enter a formula in cell D4 that calculates the average of every other cell in this row, starting with E4, that is E4,G4,I4,K4...

View 9 Replies View RelatedI need a formula which can calculate row 60 for blank cell. If true then apply another condition which checks whether or not the cell above the row 60 up-til row 50 has any bold fonts or not. If true then show True and if false, show False in cell J1.

View 1 Replies View RelatedI only want the formula to operate when there are values to calculate and then ONLY refer back to the last calculation. If there are gaps between the calculations I would like those to remain blank. Is that possible?

I have attached an example of what I am trying to do.

i need formula that will look in Col A and perform a subtraction in Cell b1 between 2 value dates 28/12/08 -12/12/08. Though I could have done this manually but was wondering if there is formula which will avoid duplicate dates. So the formula is set and when i copy new data in Col A daily the formula should be able to pick 2 dates regardless where the second date starts at...

View 9 Replies View RelatedHow would you write a formula where the sum depends on what dates you enter in A1 and B1?

Date cells C1 to C365

A1 start date

B1 end date

Example:

A1 = 1/1/14

B1 = 1/31/14

So cells C1 to C31 will be added.

"=sum(c1:offset(c1,(b1-a1),0))

This formula works, except if you enter a different starting dates, it just counts from c1.

Basically a cell might have a number with 3 decimal places

For Example 90.554, and i will format the cell two 2 decimal places. But when i use those cells which are formated to 2 decimal places in a formula it produces results based of all the decimal places in that cell.

Is there a way for the formula to only calculate the results based off of what is shown in the cell? . This is messing up our accounting area by alot of dollars since we sell many items.

I included an example of what i mean in this excel file which should clear up any confusion.

I have a code and I want to run this macro whan a specific cell change (which has sum formula) and this code also has some calculation. And I m not understanding to overcome this problem through Calculate event.

View 2 Replies View RelatedI have a tracking template with a column listing dates, all i want to do is find all the missing dates from that column of dates.

Example:

Column A

1-May

2-May

4-May

5-May

7-May

8-May

10-May

11-May

12-May

14-May

15-May

I want to list the missing dates from this list.

I have attached an excel sheet for your reference. I have particular debit values that are to be added between the dates. And Dates are also derived by formula based of payment term.

The ones I need to modify is Highlighted in Yellow. The values to be added is in "Customer Statement" and in H Column

These dates also have formula by which there are derived

-------------------------Current Ageing-------------------------

Date Range

Bucket

Amount

Percent

Start Date

End Date[code].....

I am USing =SUMIFS('Customer Statement'!$A:$A,'Customer Statement'!$H:$H,"=" & E11) but does not work.

I want to numerically graph in a 2D stacked column graph the following:

Training Completed on "Time"

Training Completed but "Not on Time"

Training Not Completed

The training Due date was 10/30/2013.

Book1.xlsx

Formula to calculate GST? I have a Non-capital and a Capital column, then a Claimable GST column.

I currently have '=SUM(E5/11)' in the Claimable GST column (G5).

If E5 is a zero value I need the sum of F5/11 in G5.

I need to calculate a TAT formula for the below case

P1 -- 1 Hour

P2 -- 2 Hour

P3 -- 4 Hour

P4 -- 8 Hour

Shift Start time : 6:30pm

Shift End Time : 3:30am

Suppose a request comes at 9:30pm and it is Priority 1 (P1) then it should be completed at 9:30pm + 1 hour = 10:30pm. I have given the below formula to execute this

=IF(A2="P1",1,IF(A2="P2",2,IF(A2="P3",4,IF(A2="P4",8,0))))

=B2+(TIME(D2,0,0))

The problem here is if the request is P4 then its 8 hr TAT and the formula will calculate the time as 5:30am. Since the shift time end at 3:30am itself the actual TAT should be the next day 8:30pm.

formula to calculate the TAT which includes the start time and end time and also excludes the weekends and holidays.

I use this formula to calculate a %, but naturally when there is a 0 excel returns the #DIV/0! error. Can someone fix my formula so the error gets replaced with a 0

in the formula the 0 would be in cell W2 =IF(N2="yes",BN2/W2,0.5).

i just started with a company Royal Mail and they have some very strange timings for starting and finishing and i need a formula to help me work my money out and my hours to the precise min.

for example i have a shift comming up this week and my start time is down for 22:45 and my calculated finishing time is 07:23. i need a formula that will show on a spread sheet my exact time of work.

the other time i had was 22:35 to 06:35...it all seems prity simple to alot of people but this is my other problem. if i work from 06 - 18:00 i get one rate and if i work from 18 - 06:00 i get another rate.

so i need to know how to calculate for the 35 min at say 15.24 ph.

Working from cell D19 I am trying to find a formula to calculate how much tax to pay.

I have a TAXABLE INCOME figure (in cell D18) , from this figure

The FIRST £1520 should be multiplied by 0.1 (in cell C19,)

The next £26880 should be multiplied by 0.22 (in cell C20, the answer to be put into D20)

Any remaining from the Taxable Income figure (put into cell C21), should be multiplied by 0.4 (the answer placed in cell D21)

i am trying to build a formula to calculate a persons age.

I have tried using the DATEIF function but i keep getting a N/A

Version: Excel 2007 WinXP

I'm basically looking for something almost like an inverse function to INDIRECT. This function would first look at a cell's formula as a text string, parse out the first valid cell reference in A1 format, and return that cell as a text string.

Detail: I have a spreadsheet with cells that point to other values. I would like to get only the row number from the first cell reference in the formula residing in a given cell. For example:

Suppose A1 has the formula =AL267. and A2 has the formula =SUM(AL94:AL235)

I would like a formula in B1 that returns the text string, "AL267" so that I would know this is the first reference.

Ideally it could be dragged down to B2 such that it returns the text string "AL94" (and not "AL235") because AL94 is the first cell reference in A2's

Currently I am copying the formulas after hitting ctl+` and pasting that text into a text editor, followed by text operations to manipulate the results into the desired values. Any solution that didn't involve going out to notepad.

I am introducing a formula with VBA but it does not calculate it. When I get out of the execution of the macro, hit F2 then Enter, the formula calculates now. Obviously I don't want this because then I would have to do F2-Enter to all the cells. I need that when VBA pastes the formula and the formula sends me the result instead of sending me the #NAME? error.

The formula is: =if($A$2<>$A$3,TODAY())

I have tried the next instructions with no success:

VB : ActiveCell.Formula = "=if($A$2<>$A$3,TODAY())"

VB : ActiveCell.Value = "=if($A$2<>$A$3,TODAY())"

VB : Activecell.FormulaR1C1 = "=if($A$2<>$A$3,TODAY())"

And so on. Some of them would send me a compile error, and those that paste the formula give me the #NAME? error.

I am currently using the following formula which has been working great for what we needed it to do:

=IF(ISERROR(NETWORKDAYS(O34,Q34,Holidays!C$2:C$20)-1),"Not Completed",NETWORKDAYS(O34,Q34,Holidays!C$2:C$20)-1)

The formula determine what was been completed on the previous work day. If it fell on a weekend or a holiday specified in another table, it would consider it the following weekday's work. However, the needs of management have changed and they would now like to see anything completed on a weekend or holiday push back to the previous weekday and I'm not exactly sure how to modify this formula to do that.

As an example, work was completed over Good Friday. Yesterday (Monday) when we ran the report, none of those showed up in our list of completed items until today (Tuesday). They would have liked those numbers to be included on Monday's report to get an accurate picture of work that was completed.

I have attached some sample data. Everything completed on the 18th, 19th is counted as 1 day behind but we would like 18th and 19th to be shown as 2 days behind, just like April 17. That way, if we ran the report today and set the filter to 1 (for column C), those items would not show up, but they would have shown up on yesterday's report.

Sample.xlsx

how I have the data arranged... What I need to do is for each type I need to be able to calculate usage, so I will need to make sure it is subtracting say COKE usage the week of APRIL 1ST where beginning inventory on april 1ST was 99 and on April 7th the invnentory was 72, of course the usage is 99-72/7 will give me per day but I need the formula to be able to know which date will correlate to know which inventory to subtract from... So each time I add a new inventory in the sheet it will always be able to find where the data is it needs to subtract from to get the proper usage... Of course do this without manually entering the usage each week...

View 1 Replies View RelatedI am fairly new to spreadsheet and need to develop a simple spreadsheet that will present a actual vs budget % for certain clients on a weekly basis.

It is currently taking me forever to remap my formula each week when i have populated my actual vs budget data.

On Sheet 1 it has my data and on Sheet 2 is where my ratios are presented with graphs.

On Sheet 2, the ratio is presented in one cell with a formula that calculates based on two cells adjacent to each other on Sheet 1.

I am currently running my report horizontally across the spreadsheet.

The problem is that when i add in another week running horizontally across my spread, the formula can not be dragged across as it does not jump by two cells.

I have attached a example : example.xlsxâ€Ž

I'm looking for a formula to use. I need to calculate ratings on variances in percentages:

Variance vs expected Rating

0% 3

1-5% 2.5

6-10% 2

10-15% 1.5

15%+ 1

The expected percentage is 5. In other words if a % below 5 is obtained the rating is 3. Between 6% and 10% the rating should be 2.5.

I cannot get a formula to transfer (copy) into a separate cell, the calculation will not display unless I select the f2 function or save. Also when I copy the formula into numerous cells below the original formula how do I stop it incrementing?

View 2 Replies View Relatedhow to calculate the best of three numbers from 5 numbers in a row?

I want to know the exact formula for this.

I have a spreadsheet that I was sent (with some resource calculations on it - nothing major or huge) and I have added a sheet to it. The issue is that, on the existing sheets, any formula I add works but on the new sheet - they don't!. I get on the new sheet is the formula written out in the cell:

=vlookup(b2,table,2,false) rather than the answer

I have

- looked at the formula and it is correct

- cut and paste all sheets (values only) into a new sheet

- had a look in the VBA window - nothing stood out

I have attached an example ....

If both of the discounts being offered are positive then I am ok with.

In this example the first discount ofered is -25% and the second one is +50%.

If the required charge is higher than the standard charge then, in this example, the final charge should give the value as 2,500.

What would the formula be that added up the 2 discounts together and gave the correct value in cell B8?

ADVERTISEMENT