Incrementing letters, ignoring blanks

MykolW

New Member
Joined
Dec 3, 2004
Messages
12
Good day to all,

I have a spreadsheet that I'm designing a quote template in. I want the different items of the quote to have a ltter beside it that auto increments, even if a line is skipped. Right now the formula that I'm using is =IF(D59>0,CHAR(CODE(A58)+1),""), but that only works if every cell above it is filled out.

I was also wondering if there is vba that will check the contents of a cell and resize the row height to fit everything. I've designed the template with very small columns and then used merging of cells to get around needing different widths on different pages. The issue I'm having is that the auto resize doesn't work with merged cells, so I'm thinking I'm going to need vba to do the resizing.

Cheers,

Michael
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I forgot to add that I'm on Windows XP and using Office 2007.

As to the incrementing formula, an office mate suggested that MAXA or MAX might be the best way to get to my goal. I have tried the following formula, but it gives and error. I'm not sure why.

=IF(D60>0,MAXA(CHAR(CODE(A56:C59)+1),""))

Note: The reason I used A56:C59 is because that column of cells has been merged (A56:C56 is now one cell).

If anyone has any ideas about the resizing of the cells with VBA, that would still be appreciated too.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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