SI function incrementation

seyf1981

New Member
Joined
Sep 8, 2017
Messages
1
Hello everyone,




I have an excel table (see the link at the end) and I would like to automate the incrementation of column C, I tried this function but there is still a malfunction:


= SI ($ B5 = "success", REPT ("0", 4-NBCAR (NB.SI.ENS ($ B $ 5: $ B5, $ B5, $ A $ 5: $ A5, $ A5) .SI.ENS ($ B $ 5: $ B5; $ B5; $ A $ 5: $ A5; $ A5); "")


In fact I tested a solution but it does not work yet and I would like you to do the same thing in the following way on the attached file:


- Starting from line 10, choosing the "fail" value generates in the column C and in the same row an empty cell


- Then line 12, the choice of the value "succes", gives as value "0001"
At this level everything is alright,


- Then for line 11, the choice of "success" gives "0001" and the previous value of line 12 changes from "0001" to "0002", this is where the problem arises, usually in line 12 the value should always remain "0001" and line 11 "0002" , and so on


Note that the test result entry is not done from top to bottom, but it can intervene at any level, for example it can start from line 10 and secondly line 11 etc. as the example described above


Thank you for repeating the test as described above, and thank you for proposing an adequate solution


https://drive.google.com/open?id=0BwD65s8cTynJQ1BuUHd0ZXRLSzQ
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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