Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default How to create a sequence based on another column values?

Dears,
I need your help.
My problem is: I need to create a sequence in column B that is changing when a change in column A happens.
What I need exactly: I need the sequence to start from 20 then added by 20 whenever the value in column A still the same --- 20, 40, 60, .... But if the value in column A is changed then the sequence should start from the beginning again (20,40,..).

Hope you help me as I am stuck in this issue.

Best Regards
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default How to create a sequence based on another column values?

I need the sequence to start from 20 then added by
20 whenever the value in column A still the same --- 20, 40, 60, ....
But if the value in column A is changed then the sequence should start
from the beginning again (20,40,..).


Here's one way, assuming the column A values start at A1.

In B1, put 20.

In B2, put
=IF(A2="","",IF(A1=A2,B1+20,20))
and copy B2 down past the last possible column A value.

Modify as needed.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default How to create a sequence based on another column values?

Hi,

Am Sun, 30 Nov 2014 09:25:56 +0000 schrieb obarahmeh:

What I need exactly: I need the sequence to start from 20 then added by
20 whenever the value in column A still the same --- 20, 40, 60, ....
But if the value in column A is changed then the sequence should start
from the beginning again (20,40,..).


please post an example how such a sequence should look like


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
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
VBA Macro to Create Sheets Based on Column of Values chicagoland8 Excel Programming 1 October 8th 12 10:44 PM
Display a sequence of cell values based on the week Shu of AZ Excel Programming 1 December 5th 08 05:42 AM
Display a sequence of cell values based on the week Shu of AZ Excel Discussion (Misc queries) 0 December 4th 08 09:29 PM
Restructuring column sequence to rows, based on a unique column. JokerFrowns Excel Programming 0 June 1st 07 03:23 PM
Create Worksheets Based Upon Changing Column Values in XP Gary[_12_] Excel Programming 1 December 18th 03 12:07 AM


All times are GMT +1. The time now is 10:36 PM.

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

About Us

"It's about Microsoft Excel"