Formula using indirect

sturnusek

Board Regular
Joined
Sep 20, 2018
Messages
51
Hi all,

I need a little bit of a help to make a formula...

I might have two lines with the same component in a big list, and I want my stock figure to be updated in the second line based on previous calculation.

I tried to use indirect and ROW()-1, but had no luck.

So, I have a available stock figure made against a component in J2:J column, and the demand column in I2:I column.

There can be two lines using the same component, and I am in need of a formula that will minus the stock from the fist line I-J, and then the available stock figure to reflect the first transaction on the second line and so on, allowing it to run into minus values.

So I need the second line to have the first lines demand to be taken off the available stock - I can imagine this cannot be done without creating additional column.

Any ideas?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

Your explanation is a bit confusing ...

May be you should try =Offset(yourcell,-1,0) ...

Hope this will help
 
Upvote 0
Yes, this can be done with the INDIRECT function. For example,

=INDIRECT("R[-1]C",0)

will return the value of the cell immediately above the formula cell.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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