Change of value based on subsequent change of status in following rows

noman999

New Member
Joined
Jul 18, 2018
Messages
1
Dear Gurus
Need your support for data having 2 columns - 1st column having unique document value and 2nd column having current status. Document number is repeated in subsequent rows due to subsequent change of status.

Now I need a formula to have final status as "open" or "closed" in column 3 based on 2nd column.

For example -
Column 1 - Document number "12" - Row 1 (and repeated subsequently on Row 5)
Column 2 - Current status "At Head Office" - Row 1 (and "Settled" at Row 5 corresponding same document number"
Expected result in column 3-

Formula to come up with result (say Result 1) "Open" in column 3 (while completing column 1 and 2 in 1st row)
as soon as same document number (in column 1) repeated in Row 5 (as per example above) with status "settled" (in column 2 - Row 5), result (result 2) to be "close" in 3rd column for same row and simultaneously change result (result 3) the earlier row status from "open" to "close" as well (in column3 - Row 1) .
(Result 1 and 2 is easy to get but need support on result 3 to change the result of earlier cell as well)

I thought some sort of Array formula like below but it is not working:

{=IF(Column 2="Cash Settled","Closed",IF(SUMPRODUCT($Column 1=Column 1,$
Column 2
="Cash Settled"),"Closed","Open"))}
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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