Hi
I want to achieve serials in two forms as here
In cell D4, on value in J4 say 3, 1-3, again if 3 in J5 then D5 should be 4-6 and so on. If the value in J5 is only 1 then D5 should show only 4. This should hold correct only if there is a text in F4. If it is number like 1-3 or 4-6 it should show only "-".
For the E4 same thing should hold. It does not get affected any thing from F4. It gets reference from B4. If B4 and B5 has same date then it will show 1-3 in E4 and 4-6 E5. If date in B4 and B5 are not same it will show 1-3 in E4 and 1-3 in E5.
I do achieve this with the help of other columns. But I want it with formula.
I used these formula for it without success please help.
=(MID(L4,SEARCH("-",L4)+1,100)+1)
=IF(ISTEXT(F5),SUM($J$4:J4)+1,0)
=RIGHT(L5,FIND("-",L5)-1)
=LEFT(D4,FIND("-",D4)-1)
=INDEX($D4:D4,MATCH(9.99999999999999E+307,$D4:D4))
=IF(ISTEXT(F5),(MID(L4,SEARCH("-",L4)+1,100)+1)-IFERROR(SUMPRODUCT(F4:F5)*(J4:J5),0)&"-"&SUM($J$4:J5),"-")
=IF(ISTEXT(F5),SUM($J$4:J4)+1&"-"&SUM($J$4:J5),"-")
The last formula works nearest but not perfect. It does not eliminate numbering where it used a "-" but adds the value at next entry.
regards