Adding Rows in Numbers Dependent on Column Info

This continues this conversation with the same name asked by MC2016


I saw Gary at MacMost do this exact thing with a formula. I haven't yet relocated the video to get the formula and so will discribe it best I remember. I'd like to do this as well and so appreacate the time to respond. My use case is having a tax expense list that is sorted by tax category. Basically I want ot insert a row between each category to make it easier to read as I transfer the info to Turbotax. I could get more spacing by simply selecting all the rows and increasing the row height and that would be less easy to read.


Basically the formula used an if statement that compared values within a column to the value above and added a row when the value changed.


Posted on Mar 27, 2023 5:39 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 31, 2023 10:59 AM

No formula can add rows but you can use conditional highlighting to show where a category begins.



This will survive sorting but will not survive manually lifting, dragging, and dropping a row from one place to another. If you need to be able to do that, it will require a column of formulas and a different highlighting rule.


  1. Select the entire column, other than the header.
  2. Make a conditional highlight for "text is not"
  3. In the field where you enter what it is not, click on the green oval and choose cell A1 (the cell directly above the topmost one that is selected). Remove the $.
  4. Choose the highlight you want
  5. Done. Each cell's highlighting rule will reference the cell above it.


When the table is unsorted there will be a lot of highlighting. When sorted it will highlight the cell in the first row of each tax category.


6 replies
Question marked as Top-ranking reply

Mar 31, 2023 10:59 AM in response to BernSh

No formula can add rows but you can use conditional highlighting to show where a category begins.



This will survive sorting but will not survive manually lifting, dragging, and dropping a row from one place to another. If you need to be able to do that, it will require a column of formulas and a different highlighting rule.


  1. Select the entire column, other than the header.
  2. Make a conditional highlight for "text is not"
  3. In the field where you enter what it is not, click on the green oval and choose cell A1 (the cell directly above the topmost one that is selected). Remove the $.
  4. Choose the highlight you want
  5. Done. Each cell's highlighting rule will reference the cell above it.


When the table is unsorted there will be a lot of highlighting. When sorted it will highlight the cell in the first row of each tax category.


Mar 31, 2023 10:02 AM in response to SGIII

Sure, thank you for asking.


Import a download of all 2022 credit card purchases to a spreadsheet. Assign a tax category to itemize for schedule C all tax deductable items. This separates business from personal expenses as one card has them all (I decline following best practice of having separate cards for business and personal). Sort by tax category and total each category produces a list that's easy to pull from for online TurboTax inputting. Or so the plan goes...


In practice this process is much messier. For example Spectrum is both entertainment (cable tv - non tax deductable) and internet which is deductable. The internet expense is shared by my wife's business and needs to be divided as do all the tax deductable expenses as we use the same card. One card is simplier on the front end and this is the cost of that simplifcation on the backend.


Also as the spreadsheet is my worksheet and record of how I addressed items, it includes items that aren't part of the bank CC download like ACH payments for quarterly estimated tax payments. Also, I've found that listing the tax categories at the bottom of the tax category column that show up by typing a single charactor is an easier way to assign a category to a line than to use a popup menu.


I used to use Quicken and decided to use a spreadsheet instead. As I just started spreadsheeting instead of Quickening, I'm still in the midst of sorting this all out. There is much doing and redoing the organization of items and comparing it to what I've done in previous years to end up with a list that works for inputting to TurboTax. This is why it's better to keep the sheet more open with adding spaces between tax category sections so I can continue to move rows and groups of rows around and not to lock everything into a Numbers Categories view.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Adding Rows in Numbers Dependent on Column Info

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.