POV-Ray : Newsgroups : povray.off-topic : Excel 2007 ?? Server Time
1 Nov 2024 05:19:31 EDT (-0400)
  Excel 2007 ?? (Message 1 to 4 of 4)  
From: Shay
Subject: Excel 2007 ??
Date: 6 Mar 2012 08:10:01
Message: <web.4f560b7b11e73672c2421da0@news.povray.org>
I've got a spreadsheet here of employee schedules. Each column represents an
employee, and each row a date. A typical column would look like:

Name
off
off
off
---start
work
work
work
work
work
---end
off
off
off

Looking for a tip for the best way to change the start and end rows and have the
rest update. I know there's a scripting language, but I'm looking for a solution
that won't scare others away. The current copy-paste method being used is
producing a lot of errors.


Post a reply to this message

From: Stephen
Subject: Re: Excel 2007 ??
Date: 6 Mar 2012 09:11:16
Message: <4f561b04$1@news.povray.org>
On 06/03/2012 1:04 PM, Shay wrote:
> Looking for a tip for the best way to change the start and end rows and have the
> rest update. I know there's a scripting language, but I'm looking for a solution
> that won't scare others away. The current copy-paste method being used is
> producing a lot of errors.

Do you mean put the end rows where the start rows are?
If so select the rows, cut the go to the first start row. Right click 
and insert cut cells.

If that is not what you mean, please explain further.

-- 
Regards
     Stephen


Post a reply to this message

From: Aydan
Subject: Re: Excel 2007 ??
Date: 6 Mar 2012 09:40:00
Message: <web.4f5620a66c83198d3771cd8e0@news.povray.org>
"Shay" <nomail@nomail> wrote:
> I've got a spreadsheet here of employee schedules. Each column represents an
> employee, and each row a date. A typical column would look like:
>
> Name
> off
> off
> off
> ---start
> work
> work
> work
> work
> work
> ---end
> off
> off
> off
>
> Looking for a tip for the best way to change the start and end rows and have the
> rest update. I know there's a scripting language, but I'm looking for a solution
> that won't scare others away. The current copy-paste method being used is
> producing a lot of errors.

You can do something like that:

=If(OR(C4="";C4="end");"off";IF(OR(C4="start";C4="work");"work";"off"))
Put that in cell C5 (that's where I started) and copy it wherever you need it

It will fill out all cells with "off" if the cell above is anything but "start"
or "work", and anything after "end" is "off" again.

Regards
Aydan


Post a reply to this message

From: bart
Subject: Re: Excel 2007 ??
Date: 6 Mar 2012 13:57:34
Message: <4f565e1e@news.povray.org>
>You can do something like that:
 >
 >=If(OR(C4="";C4="end");"off";IF(OR(C4="start";C4="work");"work";"off"))
 >Put that in cell C5 (that's where I started) and copy it wherever you 
 >need it
 >
 >It will fill out all cells with "off" if the cell above is anything 
 >but "start"
 >or "work", and anything after "end" is "off" again.
 >

Similar effect would be with this formula in the cell C5:
   =if((C4<>"---start")*(C4<>"work");"off";"work")
or, if the list separator is not";" but "," :
   =if((C4<>"---start")*(C4<>"work"),"off","work")


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.