HiCould you please let me know how can I add up the totals if when one the column contains dates? SUM( ( Sheet1!A2:A7 = "in" ) * ( Sheet1!B2:B7 ="Jan-10") * Sheet1!C2:C7 ) it return 0... ideally would be to get the total from c column if A column = in, and B column = Jan feb and march. is it possible?

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link __ http://downloadreimage.com/download.php__. (This link will automatically start a download of Reimage that you can save to your computer.)

B2:B7 ="Jan-10"Is it January 10th 2010 orJanuary 2010?MIKEhttp://www.skeptic.com/

9 more repliesTry using =DATEDIF()=DATEDIF(1stDate,2ndDate,"Interval")1st Date : Earliest date. 2nd Date : Most recent date. "Interval" : What you want calculated. Must be surrounded with quote marks. Intervals can be: "d" Days between dates."m" Months between dates."y" Years between dates."yd" Days between the dates, as if the dates were in the same year."ym" Months between the dates, as if the dates were in the same year."md" Days between the two dates, as if the dates were in the same month and year.MIKEhttp://www.skeptic.com/

6 more replieshow do i write a formula for this. if priority high add 2 days to date raised, if priority low add 14 days to date raised?

What do you mean by "date raised"?How will Excel know what is a High priority and what is Low?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

4 more repliesHi,

Need Urgent help. Need a formula, explained in detail in attachment and trying to explain here

Column A (Inv Value) Column B (Col.Date) week1 (14/4/2012 - 18/4/2012)

4500 1/5/2012 0 (formula)

225000 23/4/2012 0

55393 17/4/2012 55393 (formula)

* Column A and B are Data field from where we will take data.

* Column C and D are the fields where i need to put formula

**** If column C date range is in Column B date, then put the value of Column A

I can split Column c in two cells with start date and end date if needed (then merge remaining cells)

Appreciate your help and support on urgent bases to solve my issue. < removed email address - etaf moderator >

Good Afternoon Everyone,

I am creating a checklist for new starters to our company, a kind of tickbox exercise so managers can ensure all HR stuff is completed.

At the top of the form the manager enters the date they are due to start. Underneath we then have the list of actions that need to be completed by the end of week 1, end of week 2, and so on.

I just need a formula in column K so that the deadline date is automatically entered based on the start date given and gives 5 days for the week 1 actions to be completed, 10 days for week 2 actions to be completed, 15 days for week 3 actions to be completed etc.

So if the user starts on 09 March 15, the deadline for actions in week 1 should read 13 March 15, week 2 actions by 20 March 15, week 3 actions by 27 March 15...

I have used =(IF(ISBLANK(F5),"",F5+4)) - with F5 being where the start date is entered - but this doesn't exclude weekends. I need the 1 week deadline to be working weekdays only.

I hope this makes sense. And I hope you can assist.

Thank you.

Sounds like the WORKDAY() function may work for you.

https://support.office.com/en-us/article/WORKDAY-function-c3334471-ff31-4acb-b2cc-977a456e877c

Hello,I am trying to create a column on my excel tracker that will give me the last date due before something is late. For example, I have Report A which is due to me 30 days before my suspense date, but Report B is due to me 60 days prior. Is there a way to make a formula that if Column A has the suspense date and Column B has the report type, Column C will calculate the date due based off the above conditions? Thanks in advance for any help.

=IF(B1="Report A",A1-30,A1-60)Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more repliesHi everyone

I am new to excel and am experimenting to learn. I am trying to make a formula to count the amount of times a day of the month happens (eg. 5th) between two dates (eg. 26/09/2011 and 16/01/2012)

Its something im doing with bills i need to pay and stuff

Thank you

HI,

I would like to know if there is a Formula in Excel for finding the weekend from the given list of dates and Automatically subtracting them and calculating the next weekday?

Eg. If I receieve a work Request on Friday and it has a deadline of 48 hrs, then i would like a formula that should automatically pick the Deadline day/date as Monday instead of Saturday. (It should not consider Weekend days.)

Hope I was clear enough in my query !

thanx for your help.

Lax

Our employees can sell such things as vacation time, for example, 1 day of vacation pay but their request must be submitted by a certain time if they are to be paid. We can tell them what day they will be paid based on the date they submit their request. This can be confusing for a supervisor to explain and I wanted to automate it on an Excel sheet.

Example:

1. Employees receive their regular check every Friday as well as a check for any time sold.

2. As long as they get it into us within 7 days prior to Friday they will receive their check the next Friday.

3. If it’s greater than 7 days then it would be the Friday after next before they received the sold time check.

4. For example If an employee requested on May, 12th 13th, 14th, 15th, 16th, or 17th to sell vacation time that check would be received by the next Friday i.e. May 25th. However, if they turned it in on May 18th. 19th. 20th, 21st, 22nd., 23nd, or 24th. they would receive it on June 1st.

5. This pattern continues throughout the year. Note that weekends are included.

6. I think the attached will better explain what I am trying to do.

I think there is something wrong in the way you explain it but, could be my interpretation though

I adden a column using the Days360() function which shows the nr of days between the request date and the 'friday' date, maybe you can use that resulty to compute the new value.

Hi, I am trying to create an IF nested formula for this case: If it is less than X date = Over Retained and Not Over Retained if it there is no date, or the date is greater than X date.

We could use a little more information.1 - You haven't told us what you want to happen if the cell equals the date.2 - When you say there is "no date", what is actually in the cell? Is it blank or text or something else?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.message edited by DerbyDad03

4 more repliesI have no idea if this is even possible, but I would like to create a spreadsheet that auto-populates a series of dates based on one date that the user enters. Let's say I have a goal date to complete a project, and for every project I work on, something needs to happen 6 weeks prior to the goal date, another thing needs to happen 4 weeks prior to the goal date, and something else needs to happen 1 week and 5 days before the goal date. I would like to set up 4 cells in Excel: one for the goal date, and three for the various things that need to happen leading up to that goal date. I would like to be able to enter the goal date into the main cell and have the other three cells auto-populate with the correct date based on what I enter in the goal date. For example, if I enter a goal date of 11/01/2016, I would like the other three cells to automatically populate themselves with: 09/20/2016 (6 weeks prior), 10/04/2016 (4 weeks prior), and 10/20/2016 (1 week and 5 days prior). Is this possible? Can Excel return dates in that way?

Sure, it's easy. Excel internally stores Dates and Times as numbers. Each day is a whole number and time is the decimal portion of that day. See here for a pretty good explanation of how Excel deals with Dates and Times as well as links to all the various Date and Time functions that Excel offers:http://www.cpearson.com/excel/datet...As for your question, simply subtract the number of Days required from the cell with the Goal Date.With 11/01/2016 in A1, use this to return 9/20/2016:=A1-42(42 is 6*7, or 6 weeks.)I'll leave the other two formulas to you. ;-)Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more repliesHow to create a formula which determines True of False on whether date B is at 14 days after date A.

Suggestions?

Thanks.

Hi,

In Excel 2003, I have a Column where I typed in a Date Applied, the Next Column is DATE / EXPIRED.

The Date Applied is Column E3 and the DATE/EXPIRED is F3

Both Columns are Date Columns and I want the date to show in Date Applied and if the date applied is more than 395 days old, I want EXPIRED to print in RED in the column that is labeld DATE/EXPIRED, if it is less than 395 days old, I want the date it is due to Expire.

Currently I am getting the Date it is due to expire to print with no problem, but there are 1000s of names and I want to be able to look at a Glance and see the EXPIRED ones stand out.

I know I am to deal with a Conditional Date Formula, but have been working on it for hours and have not solved it yet.

Microsoft Office 2003 using Excel.

Thanks so much.

Certificates are only good for a Year before they have to be renewed.

Date Amplied ...... Date Expires

Feb 2007............ EXPIRED

Apr 2008 ............April 2009

May 2008 ...........May 2009

Jan 2008............ EXPIRED

Jun 2008 ............Jun 2009

I am currently getting this to print a date, I had a formula of E3+365 and F3 showed the dates as I have indicated. I can not get it to show EXPIRED when the Date is more than 365 days using today's date as reference.

E3+365 should show the regular expiration date but if that date is less than today's date then EXPIRED. Hope I explained it better.

Not certain how you het the 'expired' to show in red, but I think the formula you want in cell F3 to show either a date or 'EXPIRED' when compared to the date in E3 is :

=IF(TODAY()-E3<365,E3+365,"EXPIRED")

To break this down, it says that if today's date (TODAY()) minus the value in E3 is less than 365, then show as the date in E3 plus 365 ; otherwise show "EXPIRED"

Don't forget that if there's a leap year you'll be a day out !

If cell is empty do nothing if cell date is more than this date and less than this date then enter 900 otherwise 999

This formula will return:- An empty cell if A1 is blank- 900 for any 2015 date in A1- 999 for any not 2015 date in A1=IF(A1="","",IF(AND(A1>DATEVALUE("12/31/2014"),A1<DATEVALUE("1/1/2016")),900,999))Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

3 more repliesQuestion: I have column "A" with dates that I've sent something out (Lab Sample). Column "B" with the number of BUSINESS DAYS I set for the turnaround time of how fast I need to results. Column "C" with the date that we received the results.I would like the row to be highlighted if we haven't put in a date in column "C" (received results column) because then I can find out if something has been delayed/Past Due (Then I will clearly see if something is delay and who I need to follow up with)message edited by ktiefenthaler

(I am assuming that you are familiar with Conditional Formatting. That is what is used to make this work. If not, let us know and we'll explain how to use it.)I started with this data:

A B C

1

2

3

4 10/16/2015 2 I then used this formula to Conditionally Format C4, and chose Red as the CF Fill color.=AND(TODAY()>WORKDAY($A4,$B4),$C4="")I then changed my system date to 10/20/2015 and forced a calculation. I did not expect C4 to turn Red and it did not.I then changed my system date to 10/21/2015 and forced a calculation. I expected C4 to turn Red and indeed it did.If that process does not work for you, I can't say why since I don't have your spreadsheet to test it on. All I can say is that it works for me as I described above.Note: The TODAY() function is "volatile" which means it will update whenever the sheet calculates any formula. If you just change your system date to test the CF, it won't do anything unless you force a calculation.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.message edited by DerbyDad03

Hello, Does anyone know of formula in excel that I can use to sum the total number of cells that occur last week, last month, etc? Here is what my chart looks likeDated Project Initiated:5/5/105/5/105/9/105/15/106/1/10I would like create a graph that has the sum of projects initiated "last week" and another one that has the sum of "Last Month"...and I would like it to change weekly/monthly just like conditional formation does....help? Anyone?THANKS!!

Let's say your dates are in A1:A5.In 2 cells someplace else (you can hide the columns later) enter these formulas.For the purpose of this example, I'm going to assume you used B1 and C1.B1: =WEEKNUM(A1) and drag it down to B5C1: =MONTH(A1) and drag it down to C5To count dates from last week and last month, use these:=COUNTIF(B1:B5,WEEKNUM(TODAY())-1)=COUNTIF(C1:C5,MONTH(TODAY())-1)

4 more repliesAs you can see in my attachment, I am trying to get the following result but the formula isn't working & I get a #value error:

If H9 = "A", then add 1 day to the date in I9

- or-

"B", then add 14 days to the date in I9

- or-

"C", then add 90 days to the date in I9

Thanks!

I am creating a spreadsheet to be used every month to track work. I don't even know if this is possible.In cell F1 I have the current month and year entered using date formatting (April-11) I typed it in as 01/04/11 so it would work though. I am hoping the first two columns of my sheet can formulate automatically based on the date entered in F1 to eliminate time spent entering it every month...Starting on row 7 I would like the following table (Headings are in row 6):To start the list, B7 will show the first day of the month that does NOT fall on a SundayColumn A will calculate (and show in text) the day of the week determined in column B (i.e. Friday)Column B will show the day of the month (1, 2, 3..., 30, 31). The "catch" is that Sundays are never to be listed. For the month of April, cell A7 should show Friday...cell A8 should show Saturday... Cell A9 should show Monday.....Cell B7 should show 1, cell B8 should show 2, cell B 9 should show 4I hope I've clarified what it is I'm looking for. If this is possible, I am confident that it is one of you that will know how.I appreciate any help with this.

You are going to need several formulas for this to work,they are long and must be placed in the correct cells.With the Start date in cell F1:In Cell B7 enter the formula:=IF(WEEKDAY(F1,1)=1,F1+1,F1)In Cell A7 enter the formula:=CHOOSE(WEEKDAY(B7,1),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")We now change gears, and formulas:In Cell B8 enter the formula:=IF(MONTH(B7+1)=MONTH($F$1),IF(WEEKDAY(B7+1,1)=1,B7+2,B7+1),"")Drag down to row number 33.In Cell A8 enter the formula:=IF(ISERROR(CHOOSE(WEEKDAY(B8,1),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")),"",CHOOSE(WEEKDAY(B8,1),"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"))Drag down to row number 33See how that works.You may want to copy and past the last formula, it is a bit long.EDIT ADDED:Forgot, you must custom format your cells in column B as "DD", that way they will show only the Day.MIKEhttp://www.skeptic.com/

3 more repliesI have 2 different dates in two cells using Excel. the dates are past dates. I need a formula to tell me if the dates are less than 30 days apart.

What your looking for is the =DATEDIF() function.With your Start Date in cell A1and your End Date in cell B1put this formula in cell C1=DATEDIF(A1,B1,"D")You can then wrap it in an IF() function like:=IF(DATEDIF(A1,B1,"D")<30,"Less Than 30","Greater Than 30")Also, Excel questions are best asked in the Office Software forum.MIKEhttp://www.skeptic.com/

8 more repliesNeed formula to calculate duration between 2 dates in separate columns. For example: start date 10/20/2010 end date 4/13/2011. Need result in months.Also: start 1/20/2010 end 12/13/2011.

When you say you "need results in months" what exactly are you looking for?Depending on what you are looking for, the difference between 10/20/2010 and 4/13/2011 could be 5 months (rounded down), 6 months (rounded up) or ~5.8 months.Getting an exact answer can be cumbersome because a month can have 28, 29, 30 or 31 days. So given something like 5 months and 21 days, what percentage of a month is 21 days?21/28 = .75021/29 = .72421/30 = .70021/31 = .677What accuracy are you trying to achieve?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more repliesThanks for the great formulas. However I am getting some inconsistencies with the 1 day, 0 day. Is there a way to only list (1 day) if the amount of time exeeds 24 hours?Plus is there a way to not inlcude weekends in the calculations?=IF(OR(E2="",F2=""),"",IF(NETWORKDAYS(E2,F2,$AA$1:$AA$5)-1=0,HOUR(MOD(F2-E2,1))&" Hour "&MINUTE(MOD(F2-E2,1))&" Minutes",NETWORKDAYS(E2,F2,$AA$1:$AA$5)-1&" Days "&HOUR(MOD(F2-E2,1))&" Hour "&MINUTE(MOD(F2-E2,1))&" Minutes"))Request date Solved date Duration10/31/2016 21:11 11/1/2016 7:09 1 Days 9 Hour 58 Minutes10/31/2016 21:13 11/1/2016 7:12 1 Days 9 Hour 59 Minutes11/1/2016 7:32 11/1/2016 8:38 0 Days 1 Hour 6 Minutes10/31/2016 10:42 11/1/2016 9:11 1 Days 22 Hour 29 Minutes10/31/2016 10:05 11/1/2016 9:14 23 Hour 9 Minutes10/17/2016 16:07 11/1/2016 10:31 11 Days 18 Hour 24 Minutes10/27/2016 10:58 11/1/2016 11:07 3 Days 0 Hour 9 Minutes10/7/2016 14:09 11/1/2016 11:08 17 Days 20 Hour 59 Minutes11/1/2016 7:15 11/1/2016 13:37 0 Days 6 Hour 22 Minutes10/31/2016 12:05 11/1/2016 13:58 1 Days 1 Hour 53 Minutes10/31/2016 14:08 11/1/2016 14:05 23 Hour 57 Minutes

More repliesFor some reason I cannot get Excel 2000 to display the results of a formula. Only the formula text displays. I've gone to Tools-Options-View-Windows Options and checked and unchecked the Formulas checkbox. It doesn't make any difference.

Help!

Thanks,

Thomas

Format the cell as a number, it prolly is fmt'd as text

Hi ~

I'm working on a financial formula, trying to calculate a growth rate for a row of cells. The problem is that not all rows have complete data sets, so the formula picks up blank cells and returns a #DIV/0! error.

The existing formula works fine for those rows that have non-zero entries in all cells, and I *can* manually adjust the formula for the starting / ending cells in each row--but what a pain(!). As this spreadsheet grows larger, or the data sets change over time, it means I have to constantly keep adjusting it for every row of data involved, which is extremely time-consuming.

Here's an short example of what I might have in any given row:

A1 (blank), B1(blank), C1(blank), D1(.10), E1(.25), F1(.72), G1(1.0), H1(.80), I1(.60), J1(.75)--then in K1 is the growth formula, e.g. =((J1/A1)^(1/10)-1).

Is there ANY way to create a formula that will dynamically adjust for the blank cells that might exist across a row of data and let the formula do the calculation?

I'm new to advanced Excel topics, but any ideas would be MOST appreciated(!).

Thanks -

CP

I need a formula that will compute the total premium paid after a period of time (by months) have elapsed. For example i am paying 1000 a month. After 18 months it will appear as 18000 and after 19 months it will appear 19000 and so on......and how will you express dates on the formula?

There are a number of possibilities, some very simple, but it all depends on how your spreadsheet is set up and used.Please click on the following line and read the instructions on how to post example data in this forum (or use the screen capture feature) and post an example of your set up so that we can offer a solution that will work for you.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more repliesHi, I need to do the following:

Search array

1 a 12 asdas

2 b 121 agrsfsa

3 c 3 qwgds

4 b 131 erwer

5 e 4123 q3eqt

need to return something like this

lookup value b

answer should look like this

2 b 121 agrsfsa

4 b 131 erwer

index, match can give me one row, however what could return multiple values

Thanks in advance for your help.

Cheers

8 more replies

If it's possible to do this, what is the formula syntax for an if/then formula in one sheet that refers to the cell value in another sheet in the same workbook?

For example in Sheet 2, the formula would be something like, if Cell A10 in Sheet 1 is greater than 0, then the value of Cell B20 in Sheet 2 would by "Yes" but it would be "No" if the valuein Cell A10 in Sheet 1 was less than 0.

For some reason as I have added dates to cells, they are not getting converted to the Date type I have selected: 15/03/2009I type in my entries in this format:March 15, 2009 (usually it converts immediately but not this time)I've tried selecting the columns of cells with dates, Select>Format>Cells>Date and Type but nothing changed (although one date was converted to 03-15-2104Any suggestions?

Dat's cuz they're probably not being recognized as dates by Excel. My guess from afar is that the cells are formatted as Text and aren't accepting any other formats. Excel is finicky like that sometimes.Try this with one of your stubborn "dates"...let's assume it's in A1=DATEVALUE(A1)Now format that cell anyway you want.Then do a Copy...PasteSpecial...Values to eliminate the formula.

7 more repliesI have created a formula in Excel that works fine, but when I put it into a MS Word table, it doesn't seem to work. The formula adds up a column of prices when the resulting column has a specific word in.

The formula is:

=SUMIF(E:E, "Yes", D:D)

Example:

Is this possible to do? If so can anyone help converting this so it will work in MS Word.

Thanks, Adam.

Depends on which version of Word that you are using but Word can do simple calculations

2 more repliesI have created a formula in Excel that works fine, but when I put it into a MS Word table, it doesn't seem to work. The formula adds up a column of prices when the resulting column has a specific word in.

The formula is:

=SUMIF(E:E, "Yes", D:D)

Example:

Is this possible to do? If so can anyone help converting this so it will work in MS Word.

Thanks, Adam.

You'll have to do this:

https://support.office.com/en-us/art...4-0d7e88062257

I have a sheet in excel which I input my daily results. Some dates or blocks of dates are missing as I am unable to gather the data. (vacation, travel, etc)Column A is the date (mm/dd/yyyy)Column B is the result (0.00)I have another sheet with the following:Column A has a list of all dates (month and day only) (366 rows) Columns B through M have the year in row 1I need to lookup the month and the day and attach the year based on the column year (this is easy)=VLOOKUP(DATEVALUE(MONTH($A2)&"/"&DAY($A2)&"/"&YEAR(C$1)),Generation!$B:$C,2)BUT I need the exact date data returned. VLOOKUP returns the closest lower value.If no exact date then return 0 or "".Is there an easy way to do this in Excel without writing code?Thanks for helping in advance!

If you want an exact match, you need to use FALSE or 0 in your VLOOKUP as the optional range_lookup argument:=VLOOKUP(DATEVALUE(MONTH($A2)&"/"&DAY($A2)&"/"&YEAR(C$1)),Generation!$B:$C,2,0)Review the VLOOKUP Help file to see the options for this argument.If an exact match isn't found, this will return #N/A, so wrap the formula in an IF(ISNA()) function to get a "" of 0 if the VLOOKUP evaluates to #N/A. This will return "":=IF(ISNA(VLOOKUP(DATEVALUE(MONTH($A2)&"/"&DAY($A2)&"/"&YEAR(C$1)),Generation!$B:$C,2,0)),"",VLOOKUP(DATEVALUE(MONTH($A2)&"/"&DAY($A2)&"/"&YEAR(C$1)),Generation!$B:$C,2,0))

4 more repliesEldest daughter driving me mad.At business she is working on a database in Excel.She tries to shorten the DOB entry as for example23/11/29 for someone born in 1929 but it comes out as 23/11/2029 yet when she enters 23/11/31 it comes out as she wants it as 23/11/1931. Is there something we need to format in Cells/Date?Brambles

and have the same problem! Using excell 2000 and my cells are formatted correctly. Very strange, however there are lots of very helpful people on this site and here's hoping.Taffy

3 more repliesI've got a strange one, I think !!!Current date is 16 Jan 2005, and in my module I say Dim CurrDate As LongCurrDate = Format(Now(), "00000")This sets CurrDate as 38369Later in the module I want to compare this date with one from a cell ...Dim MyNewDate As LongMyNewDate = Range("N" & MyStoreRow) ... value is 17 Jan 2005The value being returned in MyNewDate is 38369, not, as I would expect, 38370 ...In another worksheet, the new date in Nxx is 18 Jan 2005, and this returns a value of 38370, not 38371 ... Any ideas as to what's happening here ?!?! Is my Current Date wrong ? Is this a known 'problem' ?!?!?

I'm not sure what is goung on but you would be better off working with Dates rather than LongsSub test()Dim mydate As Datemydate = Now()MsgBox mydateEnd Sub

6 more repliesCan anyone let me know the formula for coverting a date held in excel as yyyymmdd into dd/mm/yyyy.Many thanks

Assuming that is a text value try=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))where A1 holds the text date.

2 more repliesHi All,I am updating a old spreadsheet and wanted to add some work days down the side of it. The problem I have is that I only want Mon-Friday dates to be listed. For example....12/3/201212/4/201212/5/201212/6/201212/7/201212/10/2012etc.....For some reason I can't get it to work right. In this example you can see that the first work day for Dec is the 3rd and that the 8th and 9th are passed over because they are a weekend. I know I have done this before I just can't remember how I did it. I was able to click on a cell and drag down to highlite a months worth of cells and put in a formaula in the first cell and then all the dates would just show up below it. Anyone have any ideas?ThanksSpoiler

Quote from: Spoiler on December 14, 2012, 10:10:41 AMI know I have done this before I just can't remember how I did it. I was able to click on a cell and drag down to highlite a months worth of cells and put in a formaula in the first cell and then all the dates would just show up below it. Are dates for all rows part of the existing data? If so, then one approach might be to add a column to show the day of the week and then use a Filter to show all days except Saturday and Sunday.

6 more repliesI have a column of calendar dates (A1:A100) that do not include Saturdays or Sundays. I have certain production times for various products that I must base off of these dates and am having trouble counting an amount of days that doesn't include any Saturdays or Sundays in my count. Example below.

10-02-2006 I need to add 18 production days to this date. Workdays only being Mondays-Fridays, I need the answer of the formula to equal 10-25-2006.

Can anyone assist?

Ron

I have been using this formula to let clients know when their bills are due:

=DATE(YEAR(A1),MONTH(A1),DAY(A1)+90)

this ends up looking something like this: 1/1/04

however, I have had a request from them to have it look more like this: 1-Jan-2005.

Any help would be greatly appreciated. Thank you.

I'm trying to set up a spreadsheet so that each time I open it, the time between two dates is calculated. The two dates would be today (the day I open the spreadsheet) and a date about 10 years away. Any help would be appreciated.ThanxDD

For examplein A1 30/03/2017in B1 =TODAY()in C1 =DATEDIF(B1,A1,"d")

10 more repliesI have a friend from california he has got office over here in europ but because of work he needs too change his dates in excel too american format how can i do this?

I have two columns of dates, A and B. Column B is just As date plus 30 day. What i want it to do is, whenever i update column A's date, i dont want column B's date to change. how do i do that??

i dont want column B's date to change.Remove the formula that updates B?MIKEhttp://www.skeptic.com/

24 more repliesFilename: SysInfo.exe

Full Path: c:\Users\JIMBO\AppData\Local\Microsoft\Windows\INetCache\IE\RBAGCWGH\SysInfo.exe

____________________________

____________________________

Developers

Not Available

Version

1.0.0.2

Identified

6/27/2016 at 5:17:31 PM

Last Used

Not Available

Startup Item

No

____________________________

Many Users

Thousands of users in the Norton Community have used this file.

Mature

This file was released 4 years 8 months ago.

Good

Norton has given this file a good rating.

____________________________

Source File:

sysinfo.exe

____________________________

File Thumbprint - SHA:

8243b4ea661b060fe8cf4babc11ab5f51eadd28a0c9d66303183e8eceace8234

File Thumbprint - MD5:

Not available

I have an excel document. How can I get excel to automatically populate several fields based on a date in another field. For example: If field A5 has a date of 02/01/2011..how do I have Excel automatically generate fields C6 thru C14 with dates of 2/1 thru 2/8? The fields in C6 thru C14 would change based on the date entered in C5. Any help is greatly appreciated

In C6 enter this:=A5In C7, enter this and drag it down as far as you need:=C6+1Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

9 more repliesHi,Please help - I'm sure this has already been asked and answerred but I'm really struggling to find the answer I understand.In Excel - I'm trying to get a column of dates to add up and tell me how many date = Jan, how many = Feb and so on. Example. Dates column is formatted like 01-Jan-10. If there are 15 entries of Jan then I want the system to report back in another cell 15, if Feb had 24 enteries then 24 reports back and so on throughout the year.Thanks for any help! I'm sure I'm going to kick myself when I find out the answer - but thanks anyway!

Hello,I am trying to do the following in Excel:If the date in column Q1, is 30 days over the date in column P1, outline or fill Q1 in a color. Is this an IF statement or conditional formatting?Thank you!

Conditional formatting is what your looking for:1) Select your cell, Q12) On the ribbon click Conditional Formatting3) Click on New Rules, it?s near the bottom of the dialog box.4) Click Use Formula to determine which cells to format.5) Enter the formula: =IF(P1+30<=Q1,TRUE,FALSE)6) Click on the Format button7) Select the Fill Tab8) Select a pretty color9) Click OK10) Click OKMIKEhttp://www.skeptic.com/

2 more repliesGood day i would like to ask how to make an if statement with datesit would appear like thisa1=any date depending on expected deliveryb1=date receivedc1=either "Delayed" or "Ontime"IF A1<=b1 then c1="Ontime" else c1="Delayed" Endsomething like this for excel..

Here is what you asked for:IF A1<=b1 then c1="Ontime" else c1="Delayed" EndThe syntax of an IF function is =IF(logical-test, value-if-true, value-if-false)=IF(A1<=B1,"Ontime","Delayed")However, I have a question.If A1 is the expected delivery date, and it is less than the date received, isn't the package Delayed?What am I missing?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

7 more repliesI have a strange problem I hope someone can shed some light on

I want to make a new column of months from a date

I have a detached with column A as a normal date format 01/12/2006 DD/MMM/YYYY

I then in column B use the month function - so = month(A1)

it displays 12 - and if I go onto the Fx to see the expression helper / wizard

I get told that i get a number returned 1-12 here 1 = Jan and 12 =dec

so that i format the =month(a1) into a MMM-YY format and

get Jan-1900 - I'm cool with the 1900 as i have not specified YYYY but why do i get Jan returned instead of Dec

But what I'm after and maybe a simpler way is to have a dropdown on my pivot table of MM-YYYY from my date field rather than DD-MMM-YYYY

so I can choose and show month data

I'm sure I did this in the past just by using format - MMM-YYYY on a date field and it worked in the picot table OK

any help appreciated

I am having problems working on a spreadsheet of dates and am looking for help. I am creating a file to show membership ages and senority in our area. Here is my setup.The first column: "Members name". Second column: "Date of birth". Third column: DOB converted to automatically updated "Age" by Year and Month with "Datedif". Fourth column: "Hire date". Fifth column: Hire date automatically converted to "Length of Senority" by Year and Month with "datedif".I want to get the totals and averages of the Age and Senority columns. I think I have the averages worked out by using =AVERAGE(B2:B49) and then converting that with =DATEDIF(B53,TODAY(),"Y")&" Yr, "&DATEDIF(B53,TODAY(),"YM")&" M". But I am not having any luck with the totals.Can anyone help?

It is rather difficult to visualise this.Could you upload the file (with the members names removed) to a site like click here and provide a link to download it.

6 more repliesSome times I have only the year (eg 1914). Other times I have the full date (eg 12/25/2011). If I format the Excel for as a date and enter merely 1914, it shows as 3/28/1905 (its reading only the "1914"). I do NOT want to enter 1/1/1914 - because that is an incorrect date (all I have is the year 1914). What I want: If I have only the year, I want only the year (eg 1914) to show. If I have the full date, I want the full date (eg 12/25/2011) to show. How do I do it? Does it require an IF statement?

Not sure what it is your after, but Excel stores dates and times as a number, representing the number of days since January 1, 1900So when you enter 1914, Excel reads it as 1,914 days since 01/01/1900or 03/28/1905.See this page for a complete explanation of how Excel works with Dates/Times:http://www.cpearson.com/excel/datet...MIKEhttp://www.skeptic.com/

5 more repliesI am having trouble figuring out how to write the correct function using countif. I have two columns. One column has the start date and the other column has the end date. I want a separate cell to countif those two dates are between the specified dates.

start date end date

jane doe 1/22/2008 4/3/2008

February ?

So for February I need to countif those two dates fall between 2/1/2008 and 2/28/2008.

Please help.

Hi there

I'm having problems with dates in a macro. To simplify things, here is an example of my problem. I have code that goes something like this:

Range("K1").Select

Do

If Range("k1") <= Range("D9") then

ActiveCell.Offset(0, -1).Range("A1") .select

End If

Loop Until ActiveCell >=Range("K1") or ActiveCell = ActiveCell.Text

Cells K1 and Cells D9, C9 and B9 all have dates. Assume that the dates are as follows:

K1 = Sept 05, 2005

D9 = Oct 15, 2005

C9 = Sept 05, 2005

B9 = Aug 2, 2005

A9 = text

The problem is that the cursor stops at the text cell (A9) and completely by-passes all the dates. It should stop at Cell C9. If C9 did not equal K1, then the cursor should stop at cell D9.

The macro works fine if I take out the inequality signs and just leave the equal signs. What Am I doing wrong??

Please help.

Mario

Hey

I have imported data from an outside database and it brought in the dates seperated. The information is in columns and the day, month (which is in text), and year each have their own cell. There are hundreds of dates. Due to space considerations I need each date to only take one cell. Is there any way to do this without having to do it by hand?

Not sure which version of Excel you are using, but am assuming 2007. I will also mention what to do if you are using 2003 or earlier

Create a blank worksheet and do the following so that you can see how the following formula works and then how to convert it as a value rather than a formula

In A1 type 24

In B1 type June

In C1 type 1990

In D1 type =DATEVALUE(CONCATENATE(A1,B1,C1))

Assuming you have similar data in the Columns A, B and C, copy the formula in D1 down column D until you have a formula for each row of data in A, B, C

Select all the formulas in column D and click on Home Ribbon tab ans click on the Copy Icon to place it in the clipboard. 2003 and earlier Edit, Copy

Whilst those cells are still selected click on Home ribbon tab and click on the little down arrow just under the Paste button and select paste values. 2003 and earlier Edit, paste Special, Values OK

Your data in column D will now be as a date (not a formula) which in the background is treated as a number, which then allows you to do calculations on the dates.

Now select columns A, B and C and delete those columns

You are now left with column A and the dates in single cells.

Hope that helps

This should be simple and I thought I had it nailed, but the formula is not working, so I am obviously doing something wrong.I have two adjacent columns. The first column is always populated with a date and the second column may be populated with a date or may be blank. I am trying to determine if one or both dates are greater than 3/1/2008, then the row is "OK"; if neither date (or if the second column is blank) is before 3/1/2008, then that row is out. Here's what I tried to use: =IF(OR(H2>DATEVALUE("03/01/2008"),I2>DATEVALUE("03/01/2008")),"OK""OUT").The formula just does not return the correct result. Thanks for the help.

You are missing a comma between "OK" and "OUT"Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

17 more repliesQuick question.

Lets say I have a date.

11/01

Is there a formula that would return and IF statement?

For example

I am looking to all the dates between 12/15 and 01/15

I have tried to create a formula using the IF statement, but cant only get the first half.

=IF(A1<=12/15,"TRUE","FALSE")

But how do I get the second half for it to check if if the date is less then 01/15? every time I try I get an error.

Howdy. If I understand correctly. Be sure to check year, since the year will be in the cell whether it displays or not.

=IF(AND(A1<=12/15,A1>01/15),"TRUE","FALSE")

Hello to all,

recently my excel started to change the dates lets say from 02/01/08 to 06/08/02 etc. But it doesnt change all dates just some. Please, help me with this.

My operating system is Windows XP.

Thanks,

In an excel spreadsheet, I have two colums, each with a date in it. I want the third column to yield the greater of these two dates. For example, column one has 11/10/09, column two has 12/15/10, I want column three to show 12/15/10 as the greater of these two dates. Thanks.

Try this:If 11/10/09 is in cell A1andIf 12/15/10 is in cell B1in cell C1 enter the formula: =IF(A1>B1,A1,B1)MIKEhttp://www.skeptic.com/

4 more repliesHow do I write an If/Then statement in excel to change data to red if it's 6 months old? I have one field for the current date, B2, and a column of dates, B6-B40, that I want to know if the dates are older than 6 mo from today's date. If they are older then 6 months from today's date, I want the dates in column B and their corresponding data in column A to turn red. Any ideas? Thanks in advance.

See if this works for you:This is for Excel 20071) Select your cell or Range of Cells: B6-B402) On the ribbon click Conditional Formatting3) Click on New Rules, it?s near the bottom of the dialog box.4) Click Use Formula to determine which cells to format.5) Enter the formula: =DATEDIF(G3,TODAY(),"M")>6=DATEDIF(B6,TODAY(),"M")>66) Click on the Format button7) Select the Fill Tab8) Select a pretty color9) Click OK10) Click OKThis will highlight the cells that are GREATER THAN Six months.For Six Month OR GREATER use:=DATEDIF(G3,TODAY(),"M")>=6=DATEDIF(B6,TODAY(),"M")>=6EDITED, did change the cells from my test sheet.MIKEhttp://www.skeptic.com/

3 more repliesexcel insists on changing the year I enter (such as 2005) to the current year (2011) after I have specifically formatted the cells in the date format I selected. For example, I enter 5/2005 and end up with 5/2011. No matter what date format I select from the drop-down, it keeps doing this.

I formatted some cells as Custom m/yyyyWhen I enter 5/2005 it displays 5/2005 and shows 05/01/2005 in the fomula bar.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

3 more repliesI would like to build a spread sheet so when I enter a date the adjacent cell will have a date according to some rules. For example

Dates entered between Jan-01-2013 and Mar-31-2013 the adjacent cell will have a date of July-01-xxxx (where xxxx is the same year as the entered date. Can someone help me out with this.

thanx

Probably a simple solution to a fairly simple question but it's had me stumped for ages.In the first column i typed in a date (26-03-08)what i then want to do is drag this date down and for it to increase in value by weeks ie 02-04-08, 09-04-08 etc. Can it be done, or have i got to go through and type it all out (which would have been quicker now with the time i've spent mucking around).Many thanksNos

Providing the column is formatted as Date then enter the first two dates, select both cells and drag down.

2 more repliesWorking with Excel 2000 is there a way to filter dates?

Thanks for your help.

This is multi-part question on how to create different formulas on the attached worksheet.

#1 - I would like to count the number of Start Dates IF the Start Date is blank or greater than today, but only IF there is a date in the Requisition Date column. This would be to indicate the total number of open positions as of today.

#2 - I would like to count the number of cells in column A that are greater than or equal to 17 IF the Start Date is blank or greater than today, but only IF there is a date in the Requisition Date column. This would indicate total number of open positions that have a grade lever of 17 or above.

I want to have an IF true/false statement stating that for a column of DATES, if the date is before "5/1/2013" TRUE and everything else false within the if statement. thank you in advance!

Try this:With your column of DATES in column A,put this formula in cell B1 and drag down.=IF(A1<DATE(2013,5,1),"True","False")What happens if the date is exactly 5/1/2013?See how that works for you.MIKEhttp://www.skeptic.com/message edited by mmcconaghy

2 more repliesDoes Excel (version 9.0) have a feature which will allow me to compute various day/month/year time lapses? For instance can I compute the number of months between Oct. 1, 2003 and September 31, 2013? Or if I want to determine what day it is 25 years from today? I can do this on my handheld, but would like to design an Excel formula for it. Any help would be appreciated.

Use the datedif function

i.e. =DATEDIF(Date1,Date2,"Interval")

Where

Date1 is Start Date

Date2 is the end date

Interval is one of the following: You must use the inverted commas

"m" Months

The number of complete months between Date1 and Date2.

"d" Days

The number of days between Date1 and Date2.

"y" Years The number of complete years between Date1 and Date2.

"ym" Months Excluding Year

The number of months between Date1 and Date2, as if Date1 and Date2 were in the same year.

"yd" Days Excluding Years

The number of days between Date1 and Date2, as if Date1 and Date2 were in the same year.

"md" Days Excluding Months And Years

The number of days between Date1 and Date2, as if Date1 and Date2 were in the same month and the same year.

Number of working hours between two dates. Working hrs 6:00 AM to 8:00 PM. Including Saturday, excluding Sunday and Holidays

More repliesHey there,I would appreciate if i get help on Excel Date formatting. Problem Statement: when I download the report from Business Intelligence, I get certain columns with Dates. The cell values are so rigid that, I can't format the dates which are in System driven format, and few are easy to convert to MDY, or DMY or whatever. But few, I cannot change. Second Problem: When all the data is related to Quarter 1, when I try to format the date, I end-up getting dates as 02-Sep-2011, but the actual date is 02/09/2011 when I pull it from reporting system.The date should be 09-Feb-2011. I have some 3000 lines of such adamant dates, help me to get out of this issue.Positively seeking anybody's help.Gracias/Thanks/Saludos/Dhanyawad/Shukriya

re: "I can't format the dates which are in System driven format,"I don't know what you mean by "System driven format" but I can tell you that very often data that gets downloaded from websites and/or other applications ends up in Excel as Text instead of numbers or dates.Since I can't see your spreadsheet from where I'm sitting, I'm going to take a guess and suggest that both of your problems are related to each other.Let's start with Problem 2:re: I end-up getting dates as 02-Sep-2011, but the actual date is 02/09/2011 This statement does not really make sense. 02/09/2011 could actually be 02-Sep-2011 or it could actually be 09-Feb-2011, depending on how Excel (actually Windows) is set up. Let me explain.The format in which Excel recognizes dates is based on the settings in the Regional and Language Control Panel, Customize button, Date tab. This is what determines whether the first 2 digits represent the day or the month.My guess is that the values that you cannot format as dates are those where Excel can not recognize the month.For example, since your system is recognizing 02/09/2011 as 02-Sep-2011 I'll assume that your Windows setting is something like dd-mmm-yyyy.Excel has no problem changing 02/09/2011 to 02-Sep-2011 since 09 is a valid month, but it wouldn't know what to do with 02/15/2011 since there is no 15th month. My guess is that Excel decides that values like 02/15/2011 must be text and therefore cannot be formatted as a date.Try changing your Control panel s... Read more

3 more repliesIs there any way I can get a value produced that is the previous week day, ie not a weekend, that I can then export into notepad? To be run automatically everyday?

When cells are formatted as date in Excel 2000, they change to a 5-digit number (starting with 3). Has anybody come accross this, and does anybody know a way around?

I want to put hourly rates of $6 alongside weekdays and $7 for weekends.I did this it doesn't work:=IF(A2=weekday, 6, 7)Help?

The WEEKDAY function must refer to a cell that contains a date.Assuming your system is set up such that Sunday is weekday 1 and Saturday is weekday 7, this should work:=IF(AND(WEEKDAY(A2)<>1,WEEKDAY(A2)<>7),6,7)For any WEEKDAY not equal to 1 or 7, the function will return 6.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more repliesI have two columns of dates - a Due Date and a Completed Date - I want to compare the dates in each column and have the results appear in a table I have created on a separate sheet in the same workbook. If the completed date is after the due date for a certain type of information (contained in another column; ie, IMAC or Out of Scope), I want to count that instance as "Missed" in my table. Any help would be greatly appreciated!

I don't quite understand how the "IMAC or Out of Scope" information relates to your question.If all you are trying to do is compare 2 values (dates) a simple IF function should do it for you:=IF(A1>B1, "Missed", "")This will return Missed when A1 is greater than B1 and return a blank cell if not.Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

4 more repliesI am working with an Excel file and I have today's date autopopulating in cell C1 using the NOW function. In cell b12 I enter the date of an instance, for example 4/15/2013, then in C12 I am using the function of IF(B12="","",SUM(B12+30)) to give me 30 days from the date. In cell H12 I am trying to have that cell autopopulate if the date in C12 is older than today's date in C1. I have written the formula the way I feel it should work, but it is not working yet. Here is what I have =IF(C12="","",IF(C12<C2,"","X")). Once I get that working there is another formula for me to add where it turns the line red if there is an X in H12. It seems like a lot of stipulations and connections and I know if one thing is off, then more than likely even more will not work.Thank you

I don't see where you are using C2 for anything, so I can't answer any question related to IF(C12<C2,"","X").BTW, if you are only dealing with Dates, why not use =TODAY() instead of = NOW()?Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

4 more repliesI am trying to do the following:If the date is before 1/1/2014 in cell I15 I want cell J15 to say "yes". If the date is after 1/1/2014 in cell I15 I want cell J15 to say "no".Then, in another cell, I want if cell I15 is between 1/1/2014 and 1/1/2015 I want the value in G15 to be placed in cell K15.

For the J15 formula, what do you want to return if the date in I15 is equal to 1/1/2014?The same question holds for the formula in K15: What if the date equals one of the 2 dates that you are checking for?BTW, the solution will be based on the IF function. Have you read anything on the IF function in the Excel Help files or via a Goolge search? Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.

2 more repliesHi All,

I have spent all day trying to figure out how to do this and when i think i have done it.. something is missing!!

So, when the date in column A = Today, i need an email to be sent to the email address in column F stating the below:

"Hi All,

Engineer (Column B), is visiting Customer (Column C) today at (Column D) to complete (Column E)

Many Thanks"

I just cant get it to work!!

Please can someone advise what i'm doing wrong?

Sub eMail()

Dim lRow As Integer

Dim i As Integer

Dim toDate As Date

Dim toList As String

Dim eSubject As String

Dim eBody As String

With OutLook.Application

.ScreenUpdating = False

.EnableEvents = False

.DisplayAlerts = False

If (Cells(i, 1) = TODAY < "") Then

Set OutApp = CreateObject("Outlook.Application")

Set OutMail = OutApp.CreateItem(0)

toList = Cells(i, 7)

eSubject = "Engineer " & Cells(i, 2) & "job list " & Cells(i, 1)

eBody = "Hello All, " & vbCrLf & vbCrLf & "Engineer" & Cells(i, 2) & "Is at customer" & Cells(i, 3) & "in" & Cells(i, 4) & "and is" & Cells(i, 5) & vbCrLf & vbCrLf & "Many Thanks"

On Error Resume Next

With OutMail

.To = toList

.CC = ""

.BCC = ""

.Subject = eSubject

.Body = eBody

.bodyformat = 1

.Send

End With

On Error GoTo 0

Set OutMail = Nothing

Set OutApp = Nothing

Cells(i, 5) = "Mail Sent " & Date + ... Read more

I am trying to subtract two dates in excel but I keep getting weird results...

My dates are formatted like this: 8/11/2010

I am using TODAY() to return the current date. Then I want to compare that to see how many days have passed since a given date. So my formula is this: =TODAY()-D2

Now, it seems to kind of work because the result I get is 1/30/1911. 30 days is the correct answer! But why am I getting the full date?? How can I fix this? And why the heck is it saying 1911 - on another computer I tried it says 1/30/1900...

??

Look into the Datediff function. I think for what you want (doing this from the top of my head) is Datediff("d", D2, TODAY()) or you can sub TODAY() for NOW(). Like I said it is from the top of my head but should be something like that.

Hi there.

I am trying in Excel 2007, to do the following:

A guy phones in a fault. The date and time are recorded. When the fault is fixed, the date and time are recorded again. I need to calculate the response time, but I need it to only look at business hours, which are 8 to 5, Monday through Friday, when calculating this. Some faults may stretch over more than one working day, or over a weekend.

Is there a simple way to do this?

Thanks in advance for any help.

I think you'll have to Google for this

I can suggest the following link for starters:

http://www.cpearson.com/Excel/datetime.htm#WorkHours

Dates input to Excel are being treated simply as a text string and not recognised as dates. Apparently, all was OK until recently (this is a friend's problem). Old spreadsheets suffer the same problem, so it seems to be a global problem.Any ideas please?

The cells have to be formatted to accept dates rather than text or numbers. Goto Format/cells after selecting those that need to be dates.

6 more repliesI have crated a large excel spreadsheet where dates are in 3 columns ie day/month/yearIs there a way to get the dates in a single columnthanks in advancebbmf

Assuming that day, month and year are numbers in columns A, B and C=DATE(C1,B1,A1)

2 more repliesHi,I am looking to write If statement that if I write a date into cell A2, then A1 will display "Good" if its within 4 years since the date in A2, or A1 will display "Expiring Soon" if its between 4-5 years after A2, or A1 will display "Expired" if its 5 years after the date in A2. I have never used If statements with dates before so I don't know where to start and any help will be greatly appreciated.Thanks,

re: "if its within 4 years since the date in A2"By its I assume you mean today's date. If so...Take a look at the EDATE function. EDATE returns the serial number that represents the date that is the indicated number of months before or after a specified date (the start_date).e.g. For your 5 year (60 months) expiration criteria, this should work.=IF(EDATE(A2,60)<TODAY(),"Expired","")Basically what this says is "If I add 60 months to the date in A2 and the result is less than today's date, then the date in A2 must be more than 5 years ago."The "inverse" of that is to subtract 60 months from today's date to get the same result:=IF(EDATE(TODAY(),-60)>A2,"Expired","")Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.message edited by DerbyDad03

3 more repliesForgotten how to format dates in excel so they accumulate down the column.e.g. has to be like this down the column1st January 1950, 1st February 1951, 1st March 1950 .... 1st January 2006 help much appreciated. Durko

Should it be 1st March 1952? If so:Tools > Add-ins, make sure Analysis Toolpack is ticked.With the first date in A1 enter in A2=EDATE(A1,13)and copy down as far as needed. Select Column A, Format > Cells and set to display as you wish.

4 more repliesI would like to use the countif funcion to count how many times a product appears in a column by month. For example, I have two columns - Date & Product. The dates span over one year and I would like to know how many times a product appears each month.Hope you can help.Thanks, Mary

Assuming dates in column A and product names in column B:To count the number of product X sold in September (Month 9)=SUMPRODUCT((MONTH(A1:A10)=9)*(B1:B10="X"))

2 more repliesNumber of working hours between two dates. Working hrs 6:00 AM to 8:00 PM. Including Saturday, excluding Sunday and Holidays

More repliesI want to have two dates within the if statement. This is what I made, but i need it corrected. =IF(J2>DATEVALUE("5/31/2014"),"GOOD","EXPIRED" J2>DATEVALUE("6/31/2014"),"GOOD","EXPIRING SOON")

Fieldman,Sorry it's taken me a day to get back to you, I've been pretty busy...I don't know if I understand what you're wanting to do or not, but the only way that I'm aware of to put multiple "IF" statements into one field is to do it the way I demonstrated above. You can put as many as you'd like in there to achieve what you're trying to do.This is just a shot in the dark, but I've re-read your posts several times now and am wondering if it would work the way you want if you change the formula in A2 to something like this:=IF(A1>DATEVALUE("5/31/2014"),"GOOD",IF(A1>DATEVALUE("6/31/2014"),IF(A1>DATEVALUE("5/31/2014"),"EXPIRED","EXPIRING SOON"),"EXPIRING SOON"))I really think you will need to play with the formula above to make it work, but I think something like this is going to be your best bet.Law of Logical Argument: Anything is possible if you don't know what you're talking about.

10 more repliesI am trying to change some dates in a column in excel 2007. I want the date to read the month and year but the year that I need is 2007 and the cell wants to automatically change to 2008. How can I prevent this from happening?

Thanks for the help

puterputter

Hello,

What a great help this forum is.

I know nothing at all about VBA, yet managed to get a macro in excel that allows me to send the "due date" emails that works almost perfectly for my needs. I based my macro on the code found here https://forums.techguy.org/threads/...ue-date-reminder-based-on-excel-file.1129238/

But i'm still missing one function in this macro for it to be perfect for my needs. I want it to send only one email to the "area manager" specifying all the items (serial number and location) that follow my due-date rule (instead of one email per item). I want it to send a list of items that are due this month for example.

Is it possible?

I work in construction. We'd like to know if there is a way to work a calendar backwards. We have a "due on site" date, a material lead time and need to figure out when the item needs to be approved by in order to meet the "due on site" date.

Please help, thank you for your time.

Katy

Hi there, welcome to the board!

Yeah, you can absolutely do that. Dates are serial numbers in Excel, so you can do math on them. The question really becomes where is your "due on site" date located, and how do you want to calculate the approval date? Is this just a set number of days prior? Should it skip weekends? Holidays?

For a straight day calc, just mins the values:

Code:

=A2-B2

'assumes "due on site" is in A2

'assumes material lead time (in days) is in B2

For skipping weekends and holidays we can make use of some of the many date functions in Excel, like WORKDAY() or NETWORKDAYS(). If you specify what you start with, and the expected results, we can write the function(s) for you.

Hello,I am trying to write a macro to determine the percentage of dates in a column of cells (format: 30-Sep-10) that occur before the end of the current calendar year.I have tried using the DCOUNTIF function, but I think I am having problems with excel recognizing the date and working with the date in the context of the current calendar year. This is what I have, which doesn't seem to work at all. The C[-2] is the column with the dates in it:For i = 2 To Sheets.Count Worksheets(i).SelectRange("J8").Select ActiveCell.FormulaR1C1 = "=DCOUNTIF(C[-2]:C[-2],<DATE(year(now())+1,0)" Range("K8").Select ActiveCell.FormulaR1C1 = "=DCOUNT(C[-3]:C[-3])" Range("L8").Select ActiveCell.FormulaR1C1 = "=((RC[-1]-RC[-2])/RC[-1])" Range("J6").Select ActiveCell.FormulaR1C1 = "Ground Task IDs" Range("J7").Select ActiveCell.FormulaR1C1 = "due this year" Range("K7").Select ActiveCell.FormulaR1C1 = "Req" Range("L7").Select ActiveCell.FormulaR1C1 = "% complete"NextThank you for any help.

Hi,I don't think that you need a macro to do this.As a test I had 1000 dates in column A in cells A2 to A1001The dates ranged from 01 January 2009 to 31 December 2011The method I used is based on counting the total number of dates and the total number of dates that are on or before 31 December 2010.Then calculate the percentage.=COUNT(A2:A1001) counts all cells containing numbers (Excel stores dates as numbers - 40373 is 14 July 2010)I used =COUNTIF(A2:A1001,"<=" & DATE(2010,12,31)) to count the number of cells containing a date on or before the 31st December this year.Putting all this into one formula I get:=COUNTIF(A2:A1001,"<=" & DATE(2010,12,31))/COUNT(A2:A1001)Then format the cell with a percentage number format.Or if you prefer the value directly use:=(COUNTIF(A2:A1001,"<=" & DATE(2010,12,31))*100)/COUNT(A2:A1001)Regarding a macro, i did this:Option Explicit

Sub datePercnt()

Dim intTotal As Integer

Dim sngBefore As Single

Dim rngDates As Range

Dim dtEndDate As Date

Dim rngCell As Range

Dim sngResult As Single

'set the range containing dates

Set rngDates = Worksheets("Sheet1").Range("A2:A1001")

'set counters to zero

intTotal = 0

sngBefore = 0

'set end date

dtEndDate = DateSerial(2010, 12, 31)

'loop through each cell in the range

For Each rngCell In rngDates

'add 1 to count of all dates

intTotal = intTotal + 1

'test date in cell against end date

If rngCell.Value <= dtEndDate Then

'if on or before add 1 to 'before total'

sngBefore ... Read more

Hya folks,

Posting this on behalf of a colleague. She has a spreadsheet set up which includes dates. She "doesn't know what she's done" but all of the dates are showing in numerical form ie: 36790 instead of date format ie. dd/mm/yy.

Excel shows the number in the cell but in the formula bar it shows the date correctly. I've tried changed the format of the cell (and even the whole sheet) to Date - dd/mm/yy but still to no avail. I've also made sure the regional settings for the PC are correct in case that was throwing it out. Even checked it's not using the 1904 date system.

Yesterday the spreadsheet was working fine but today kaput!!

Any help greatly appreciated.

Gogs

Try hitting the key below ESC while holding down CTRL.

Or use Format Painter to copy from a correctly formatted cell, in another file if necessary.

If still stuck, PM me to arrange sending a chunk of the file.

Rgds,

Andy

Hi,

I have disabled every auto-correct and auto-format option I can find, but Excel still won't stop changing my numbers to dates. If I type 1-2, it automatically changes it to 2-Jan, and so on. I'd really appreciate any suggestions you can offer me. My bio grade appreciates it, too. Thanks.

Have you tried formatting the field(s) to text?

I have a table with start dates in col 1, end date in col. 2 and difference in days in col 3.However for some reason the formula, say, =B1-A1 doesn't always work. In some lines it's OK and in others it displays #VALUE! The formatting of the various cells appears to be OK yet the symptoms persist.I'm stumped. Any solutions?

You will get that error if one (or both) of the dates is actually a text string, not a date. To test this, assuming that a problem date is in A1 then in a spare cell try the formula=ISNUMBER(A1)If that returns FALSE it is a 'text date'.Id that is the case then, with one column at a time, select the dates, Data > Text to Columns, click Next twice then on the third screen tick Date and select DMY then click Finish.

6 more repliesCase name__________ Type of report__________ date received ______date due (85 days from receipt)

Hogan, Hulk___________CAN____________________ 5/7/12___________7/31/12

Jolie, Angelina ________Prevention_______________ 5/15/12 _________8/8/12

Stark, Tony__________ CAN ____________________6/19/12__________9/12/12

My excel doc already calculates the due date. What I desire is for the case name to populate to my outlook calendar to the date that it is due. Is this possible, and if so, when posting a solution, treat me as if I were 3 years old, I am not computer saavy, but am a social worker looking to cut corners anywhere I can.

I want to be able to enter the info on excel, open my calendar and immediately find Hulk Hogan's name in 7/31/12