Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Post increment a column based on information in another column

Hi,

I have several spreadsheets that I need to increment a column each time information in another column changes. Using example below, each time program changes I need the count column to be incremented. I don't want to use autofill as I have to do this every month and several sheets with lots of rows.

Thanks for the help

Program Count
1100 1
1100 2
1100 3
1200 1
1200 2
1200
1200
1400
1400
  #2   Report Post  
JMB
 
Posts: n/a
Default

Assuming "Program" is in cell A1 and "Count" is in cell B1, I would enter the
following formula in cell B2 and copy it down.

=COUNTIF(A$2:A2,A2)


"dhemlinger" wrote:


Hi,

I have several spreadsheets that I need to increment a column each time
information in another column changes. Using example below, each time
program changes I need the count column to be incremented. I don't want
to use autofill as I have to do this every month and several sheets with
lots of rows.

Thanks for the help

Program Count
1100 1
1100 2
1100 3
1200 1
1200 2
1200
1200
1400
1400


--
dhemlinger

  #3   Report Post  
Flintstone
 
Posts: n/a
Default


Hi

=IF(B1<"",COUNTA($B$1:B20)&".","")

Copy this formula down from A1 to A20.

This formula works for data in column B, if data is deleted in B16 the
line count in the A column will be numbered 1 through 19, skipping over
the blank cell A16, that is the formula counts the non blank cells in
the range B1:B20.

Notice the catenation in the formula { &"." }, you can remove this
altogether or replace the period with whatever text you choose.

Matt


--
Flintstone
------------------------------------------------------------------------
Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
View this thread: http://www.excelforum.com/showthread...hreadid=373661

Reply
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
chart label reference based on the column number z.entropic Charts and Charting in Excel 2 May 21st 05 05:54 PM
LINK ONE ROW BASED ON CONTENTS OF A COLUMN WITHIN THE ROW (DATE) Susan Excel Worksheet Functions 0 February 16th 05 05:01 PM
COUNT INFORMATION IN COLUMN B ONLY IF A1 MATCHES K1 COUNT THAT CE. witchcat98 Excel Worksheet Functions 1 February 4th 05 01:38 PM
Can you conditional format based on information in cell comments? Jflyer Excel Worksheet Functions 1 January 15th 05 01:52 AM
Dynamic Column VlookUps Based on Week Number TLK40us Excel Worksheet Functions 3 November 14th 04 03:33 PM


All times are GMT +1. The time now is 04:48 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"