Multiple conditions to look at

AndrePrevin

New Member
Joined
Jan 13, 2019
Messages
8
Hi all

I have 4 columns of data
in column A I have some random values and mostly blanks. in column B I have a calculation which looks at column A and if a value appears there it discards the values above it and takes the new value from column A.
In column C I have a formula = =IF(D2>0,B2-D2,B2)
The problem is, when column D is blank, column C just pulls the values from column b, obviously, but what I want it to do is, when it encounters a value in column D, it must calculate B2 - D2 and output the value but then on the next cell down it must increment by the same increment value which it sees in column B


Pardon my poor explanation but I hope this illustrates what I want to do a bit better:

ABCD
1010
1111
555
66
77
835
105
105
116
888
99
1385
1510

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
Don't know if this helps to understand my problem but essentially I want to create a formula in column C that can work with multiple conditions, like whether or not a value appears in column D and what sort of increment occurs in column B

Kind regards
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Cell C14 = "=IF(ISBLANK(D14),C13+(B14-B13),B14-D14)"
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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