find the next data

amirsaeed

New Member
Joined
Dec 22, 2015
Messages
14
assume i have a table like bellow
4562486
7896842
4568624
1234862=
4569713
1237139
7891397
4563971
1236985

<tbody>
</tbody>

i want excel to
for example i'm in column C4
i want to find next 123 below A4(which is 123) then add its B column to B4(which is 4862)
in this example the cell would be A6(which is the next 123 in column A below A4)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
How is different from your post in: http://www.mrexcel.com/forum/excel-questions/910752-two-statement-time.html#post4379640?
 
Upvote 0
How is different from your post in: http://www.mrexcel.com/forum/excel-questions/910752-two-statement-time.html#post4379640?

i want excel that every time i write 123 in column A, excel finds the last 123 from column A and then add their B column with each other
for example if i wrote 123 in the A10 i want excel to find the A9 and add B10 with B9
it's too hard to explain my purpose i hope you understand what i mean
thank you in advance
 
Upvote 0
i want excel that every time i write 123 in column A, excel finds the last 123 from column A and then add their B column with each other
for example if i wrote 123 in the A10 i want excel to find the A9 and add B10 with B9
it's too hard to explain my purpose i hope you understand what i mean
thank you in advance


in other word i just want the last 123 from column A not all of them
 
Upvote 0
assume i have a table like bellow
4562486
7896842
4568624
1234862=
4569713
1237139
7891397
4563971
1236985

<tbody>
</tbody>

i want excel to
for example i'm in column C4
i want to find next 123 below A4(which is 123) then add its B column to B4(which is 4862)
in this example the cell would be A6(which is the next 123 in column A below A4)

i want excel that every time i write 123 in column A, excel finds the last 123 from column A and then add their B column with each other
for example if i wrote 123 in the A10 i want excel to find the A9 and add B10 with B9
it's too hard to explain my purpose i hope you understand what i mean
thank you in advance

in other word i just want the last 123 from column A not all of them

These specifications do not cohere. Care to write down what value or values must obtain given the value of 123 as criterion?

Row\Col
A​
B​
C​
1​
XYZ
2​
456 2486
3​
789 6842
4​
456 8624
5​
123 4862
6​
456 9713
7​
123 7139
8​
789 1397
9​
456 3971
10​
123 6985
 
Upvote 0

Forum statistics

Threads
1,216,426
Messages
6,130,547
Members
449,584
Latest member
kennysmith1

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