Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to use time with an If command?
Can anyone tell me what formula i could use to perform a function
whenever for example,the month of April or perhaps the 31 days of a specific month appears in the data. For example,below is 3 columns and if you imagine that the time column extends to a full year. Time x values Y values 15/02/2008 17:15 1590158.49 9.12 15/02/2008 17:30 1590168.64 10.15 15/02/2008 17:45 1590178.3 9.66 15/02/2008 18:00 1590187.91 9.61 15/02/2008 18:15 1590197.4 9.49 What i want to do is if the first column contains the month of feb then add the corresponding x and y values IE taking the first line, the first column does represent a day in Feb so add 1590158.49 and 9.12 which will produce 1590167.61 I would be most grateful for any help. Thanks David |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
How to use time with an If command?
For starters Excel has no "lines" it has rows. Assuming your date is in
Column A1:A10 and the x values are in B1:B10 and the y values are in C1:C10, then in D1 put the formula =IF(MONTH(A1)=2, B1+C1,"") and drag the formula down through D10 Tyro wrote in message ... Can anyone tell me what formula i could use to perform a function whenever for example,the month of April or perhaps the 31 days of a specific month appears in the data. For example,below is 3 columns and if you imagine that the time column extends to a full year. Time x values Y values 15/02/2008 17:15 1590158.49 9.12 15/02/2008 17:30 1590168.64 10.15 15/02/2008 17:45 1590178.3 9.66 15/02/2008 18:00 1590187.91 9.61 15/02/2008 18:15 1590197.4 9.49 What i want to do is if the first column contains the month of feb then add the corresponding x and y values IE taking the first line, the first column does represent a day in Feb so add 1590158.49 and 9.12 which will produce 1590167.61 I would be most grateful for any help. Thanks David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pivot Table Error Message - "Command Text not set for command obje | Excel Discussion (Misc queries) | |||
How to create command button to save the dates and time | Excel Discussion (Misc queries) | |||
How can i use a command button to validate date and time | Excel Discussion (Misc queries) | |||
@ NOW time command | Excel Discussion (Misc queries) | |||
Excel has a "Find Next" command but no "Find Previous" command. | Excel Discussion (Misc queries) |