> Thanks for responding so quickly Jon.
> Below is 3 columns and if you imagine that the time column extends to
[quoted text clipped - 9 lines]
> 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

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
> <david.jord...@googlemail.com> wrote:
>
[quoted text clipped - 23 lines]
> Jon Skeet - <sk...@pobox.com>http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
> World class .NET training in the UK:http://iterativetraining.co.uk
This is just data displayed in an excel spreadsheet.As you have picked
up,i'm no software expert.I was just wanting to use an if command
which would look at the calander date and if a certain month was
displayed,would perform a function.I dont,or rather ,have never used
visual basic.If this is not possible using a simple IF command,i would
appreciate the code in visual basic and attempt to do it that way.
Thanks
David
Lasse Vågsæther Karlsen - 18 Feb 2008 22:48 GMT
>> <david.jord...@googlemail.com> wrote:
>>
[quoted text clipped - 9 lines]
>>> 15/02/2008 18:00 1590187.91 9.61
>>> 15/02/2008 18:15 1590197.4 9.49
<snip>
> This is just data displayed in an excel spreadsheet.As you have picked
> up,i'm no software expert.I was just wanting to use an if command
[quoted text clipped - 4 lines]
> Thanks
> David
You're most likely better off in a newsgroup for the Office products,
like microsoft.public.excel.
However, I think you can try to add the following in a column off to the
right of your data, in row 2, and then copy/paste the formula to rows
downwards:
=IF(MONTH(A2)=2;B2;0)
This will produce the value in the B-column, row 2, if the date/time in
the A-column, row 2, is in february, otherwise it will produce the value 0.
Note that A2 and B2 are based on the fact that your Time column is the A
column, and your "x values" column is the B column (the one containing
1590158.49 etc.), and that the captions Time, x values, etc. are in the
first row so the data appears in the second row. If this doesn't fit
your spreadsheet, adjust the formula appropriately.
But as I said, you should probably try to followup this question in
microsoft.public.excel or a similar newsgroup.

Signature
Lasse Vågsæther Karlsen
mailto:lasse@vkarlsen.no
http://presentationmode.blogspot.com/
PGP KeyID: 0xBCDEA2E3
david.jordan1@googlemail.com - 19 Feb 2008 19:50 GMT
On Feb 18, 10:48 pm, Lasse Vågsæther Karlsen <la...@vkarlsen.no>
wrote:
> david.jord...@googlemail.com wrote:
> >> <david.jord...@googlemail.com> wrote:
[quoted text clipped - 47 lines]
>
> - Show quoted text -
Thanks Lasse - that's a big help.
David
christery@gmail.com - 18 Feb 2008 22:48 GMT
On 18 Feb, 23:35, david.jord...@googlemail.com wrote:
> > <david.jord...@googlemail.com> wrote:
>
[quoted text clipped - 34 lines]
>
> - Visa citerad text -
So: stating the obvious...
1)an Excel problem,
2)wondering if VB(A) would help,
3) posted in a C# group....
Is It just me or...
I have a problem with the right taste of Thai Tom Yum Kung soup but...
(Oh, got a Karl.E flashback) *smile*
//CY