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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

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