Hello!
If you looked at this post before, I have rewritten this description to hopefully make more sense of the problem for which I need your help.
The attached workbook is the beginning of my attempt to create a credit card expense form in the way that my Fiscal department has requested for it to be. One of the most important things they want is the ability to manage splitting charges out to multiple accounting allocations. To keep splits grouped, my idea is to make sure that the line item numbers change for each row that a split would encompass and all line item numbers below that split would continue to the next sequential whole number. This process repeats for each split within the form.
There are 25 line items on the form. If a split starts at line item 1, it can be split 25 times. It could also be split as few as 2 times. If it is a 2-way split starting at line item 1, that line item changes to 1-1, the next line item changes to 1-2 as the second line item for the split, and the third line item number changes to 2 and all others continue to self number to 24 below.
Splits------Line Item
2-----------1-1
------------1-2
------------2
------------3
------------4
------------Etc. to 24
If in line item 3 there is another 2 way split, the line item changes from 2 to 2-1 and the next line to 2-2 and the next to 3 and all others continue to self number to 23 below.
Splits------Line Item
2-----------1-1
------------1-2
2-----------2-1
------------2-2
------------3
------------4
------------Etc. to 23
The problem is that each formula gets exponentially longer in order to accommodate for all of the possible outcomes for every line item number, making sure that FALSE is never an outcome at all. For instance, the formula I have in G10 contains 6 IF statements and 6 possible values. The formula in G11 contains 22 IF statements and has 11 possible values. Line Item 25 (G32) has 324 possible values that it could be. My brain hurts trying to imagine how many IF statements that equates to for that cell.
To be clear, I'm not looking for anyone to do this for me. I am looking for either a better way to accomplish the same thing, or any way that you know of that would shorten up the enormity of the formulas in the remaining 21 cells.
Thanks in advance for even giving a thought to this! Any help or advice you can offer will be greatly appreciated.
Bookmarks