Need formula help for a chart

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
Excel Workbook
ABCDEFGHIJKLMNOPQ
2
3
46341138361910522537483
5
6111111111111111
7222222222222222
8333333333343333
9444454444455445
10555566555566656
11666677766787778
12787788887899889
139109891099910111010910
14131411101112111010111212111112
15151615161718131213141513131213
16242517181920191415161716141415
17252626272829212223242518171516
18262727282930303132333435191819
19313228293031313233343536362021
20333433343536323334353637373738
21363738394041424344454647483839
22
Sheet


This table work column per column.
Each column is for a new day.

In Row 4 are the numbers that need to be found in the previous column.

example :
Number 6 in C4 is in cell B11 in the previous column. Then when I highlight B6:B21 and drag it over C6:C21 this number (6) BECOME THE NUMBER 1 in C6 and push down all the other numbers by 1 cell, and at the same time every number are added 1 when they pass over the next column (C).

So 1 become 2, 2 become 3 become 4, etc… since number 6 has been selected ( in C4 ), there would be no number 7 in column C ( since all numbers are suppose to added 1 in the next column over ), because now it become the number 1 in C6.

It look a little bit confusing but, it's very important to me.

To conclude, every single numbers need to be added 1 when they pass over the next column, and the number selected in row 4 become the number 1 in row 6.

Thank you for any help.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Does anyone have an idea for this chart ?
 
Upvote 0
Let's just focus on columns C and D to begin with.

I think I understand the logic for generating the numbers in column C.
It looks like...

IF
the adjacent number in column B is LESS THAN OR EQUAL TO the number in C4,
THEN
copy it across
ELSE
copy it across and add 1

That is straightforward and we can write an Excel formula to do that.

But that logic does not seem to apply consistently to column D.
How do you get the 11 in Col D, for example ?
 
Upvote 0
Hi Gerald,

Firstable I want to apologized for not been able to respond right away, my work sometime is very busy.

I know what you mine when you say :
IF
the adjacent number in column B is LESS THAN OR EQUAL TO the number in C4,
THEN
copy it across
ELSE
copy it across and add 1

That is straightforward and we can write an Excel formula to do that.


But it's not the way it works, looking at the chart it kind of look like this.
So I made another chart to explain better :
Excel Workbook
ABCDEFGHIJKLMNOPQ
2
3
46341138361910522537483
5
6111111111111111
7222222222222222
8333333333343333
9444454444455445
10555566555566656
11666677766787778
12787788887899889
139109891099910111010910
14131411101112111010111212111112
15151615161718131213141513131213
16242517181920191415161716141415
17252626272829212223242518171516
18262727282930303132333435191819
19313228293031313233343536362021
20333433343536323334353637373738
21363738394041424344454647483839
22
Sheet


This chart add 1 ( 1 day ) to each number, it show how many days has pasted until that number has been selected.

So let take B6=1 ( in Blue ) this number when it pass over the next day become 2 in C7.

Explanation: ( 1+1=2 and been pushed down 1 cell because of the number 6 been selected and become the number 1 on top of the column ).

And then become 3 in D8, 4 in E9, etc... up to 15 in P16.
This number hasn't been selected in row 4, so it keep going.

And for the number 15 in B15 ( in Orange ), this number also keep going until it been selected in M4, then it become 1 and start again the same pattern.

I hope this would explain better ? I'm doing this chart by hand and it take me a lot of time to do it, so if one formula would do the trick, I would be very happy.

Thank you for the help.
 
Last edited:
Upvote 0
I'm sorry, I've read and re-read your post but I can't understand the logic behind this.

Can we just focus on the first three columns, B, C and D, and can you explain really clearly how the numbers in those three columns are calculated ?
 
Upvote 0
OK,

Column B:

is the starting column and imagine that the numbers in column B are " Numbers of Days ", the reason I add 1, is because each new column is a new day.

Column C:

From C6:C21 are the numbers from Column B (+1).
When in row 4, here ( D4 = 34 ).
This number (34) will be removed from column C and become ( as number 1 ) in D6, and will push, all the other numbers down by 1 cell, with plus 1 day.
 
Upvote 0
Here is a new table chart with only 3 columns for a better understanding.
Excel Workbook
ABCDE
1
2
3
4713
5
6111
7222
8333
9444
10555
11666
12777
13898
1491010
15101111
16111212
17121313
18131415
19141516
20151617
21161718
22
Sheet


I put arrows to explain better but don't show on the post sorry about that !!!

7 in C4 is the number that need to be found and removed from column B ( which is in B12 ), this number now will start at number 1 in C6.

And the same for the next column number 13 in D4 need to be found in column C ( which is in C17 ) and removed from it and then start at number 1 in D6.

That's it, it's much clearer now I hope.

Thank you in advance for anyone that would help.

( Does someone knows where to click in " Excel jeanie HTML " to show the arrows I put on the chart ? ) Thank you.
 
Last edited:
Upvote 0
Here I tried to explain in another way, let see if someone can help me ?

Excel Workbook
ABCDEFGHIJKLMNO
1
2
3
4713NumberinBecomeinNumberinBecomein
5
61111B62C71C62D7
72222B73C82C73D8
83333B84C93C84D9
94444B95C104C95D10
105555B106C115C106D11
116666B117C126C117D12
127777B121C67C128D13
138988B139C139C1310D14
14910109B1410C1410C1411D15
1510111110B1511C1511C1512D16
1611121211B1612C1612C1613D17
1712131312B1713C1713C171D1
1813141513B1814C1814C1815D18
1914151614B1915C1915C1916D19
2015161715B2016C2016C2017D20
2116171816B2117C2117C2118D21
22
9 (2)


Column F:I are is the explanation of column B,C and K:N of C,D.

Small mistake : 13 in C17 become 1 in D6

The number in row 4 ( here number 7 in C4 ) must be found in column B, then, all the numbers are rollover to column C,the number 7 become the number 1 in C6 and all the other numbers from B are all added 1 and put below the number 1, starting at C7.and then the same with number 13.Etc..

Basically, all the numbers from B are rollover to C with each one added 1 and the number in row 4 ( C4 ) is taking off B to become always a number 1 at the top of the next column.That it, and so on with the other number to come.

Hope someone can help, I know I'm pushing but I really need this formula.

Thank you all.
 
Last edited:
Upvote 0
Hi Gerald,

Thanks for the reply, and yes I do but it seem to be hard, for the a understanding part so I let it go.

But yes I still want it if someone can figure it out.
Thank you.
Serge.
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top