LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Tom
 
Posts: n/a
Default need to increment value

I have two columns ("A", "B"). Col "A", in the first row will contain "cyc".
then the remaining rows I want to increment, based on col "B". Col "B" will
contain "Sun", "Mon", etc., for all days of the week. When the valaue in col
"B" is not "Sat" and not "Sun", I want to increment the value from the preceding
[weekday] row by one. Like this:

Col A Col B Col C
----- ----- --------
cyc dow date
--- --- --------
Sun 01/01/06
1 Mon 01/02/06
2 Tue 01/03/06
3 Wed 01/04/06
4 Thu 01/05/06
5 Fri 01/06/06
Sat 01/07/06
Sun 01/08/06
6 Mon 01/09/06
7 Tue 01/10/06
. . .
. . .

(Note that col "B" is dependant on col "C", which contains dates, so col "B"
won't always start with "Sun". The value in col "C" will always start with the
first day of the month, which can be any day of the week, and increment upward,
to the end of the month.)

In col "A" I've tried:

if(a6="cyc",1,if((text(weekday(b11),"ddd")<"Sat") ,if((text(weekday(b11),"ddd")<"Sun"),=(A7)+1,),))

but it isn't giving me a number. (And then I still have the problem of the
skipped weekend days.) Is there a limit to how much I can nest the "if"s?

Any thoughts/ideas? Thanks in advance,

Tom

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto increment over multiple worksheets Ethan Excel Worksheet Functions 2 June 22nd 05 09:43 PM
Relative reference autofill increment other than +1 SteveB Excel Discussion (Misc queries) 3 June 14th 05 07:40 PM
How do I automatically increment worksheet number when pasting a . Mr Keldor Excel Worksheet Functions 1 April 21st 05 06:06 PM
Increment a counter in Excel COSdl Excel Worksheet Functions 2 March 4th 05 09:47 PM
How do I increment a fill series by a number other than 1? Say I. John Excel Worksheet Functions 3 January 6th 05 09:34 PM


All times are GMT +1. The time now is 03:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"