Excel formatting, in my opinion, can only accept a maximum of two requirements, plus a default if those conditions are not met. Conditional formatting may be your only escape from this, in my opinion. I'd format this in a cell using one of the examples from your linked solution.
[$₹][>9999999]##\,##\,##\,##0.00;[$₹][>99999]##\,##\,##0.00;[$₹]##,##0.00
Then in conditional formatting, you would need to have a condition if cell<0 and apply the conditional format of:
[<-9999999][$₹]-##\,##\,##\,##0.00;[<-99999][$₹]-##\,##\,##0.00;[$₹]##,##0.00
If you want to change decimals, symbols, etc you should be able to work it out from the linked solution, and this one.