How can I increment alphabetically - problem with skipping rows.

dstepan

Board Regular
Joined
Apr 16, 2009
Messages
160
Here is what I am trying to fix.
I want the formula to ignore blank rows and then continue the alpha increment. See column I for desired results.
All help is appreciated


GH I
34=IF(H35>0,LEFT(ADDRESS(1,ROWS($1:26),4),FIND(1,ADDRESS(1,ROWS($1:26),4))-1)," ")Yperfect
35=IF(H36>0,LEFT(ADDRESS(1,ROWS($1:27),4),FIND(1,ADDRESS(1,ROWS($1:27),4))-1)," ")Zperfect
36=IF(H37>0,LEFT(ADDRESS(1,ROWS($1:28),4),FIND(1,ADDRESS(1,ROWS($1:28),4))-1)," ")AAperfect
37=IF(H38>0,LEFT(ADDRESS(1,ROWS($1:29),4),FIND(1,ADDRESS(1,ROWS($1:29),4))-1)," ") cell B37 is blank so this cell should also be blank
38=IF(H39>0,LEFT(ADDRESS(1,ROWS($1:30),4),FIND(1,ADDRESS(1,ROWS($1:30),4))-1)," ") cell B38 is blank so this cell should also be blank
39=IF(H40>0,LEFT(ADDRESS(1,ROWS($1:31),4),FIND(1,ADDRESS(1,ROWS($1:31),4))-1)," ")ADthis should be BB
40=IF(H41>0,LEFT(ADDRESS(1,ROWS($1:32),4),FIND(1,ADDRESS(1,ROWS($1:32),4))-1)," ")AEthis should be CC
41=IF(H42>0,LEFT(ADDRESS(1,ROWS($1:33),4),FIND(1,ADDRESS(1,ROWS($1:33),4))-1)," ")AFthis should be dd
<colgroup><col width="128" style="width: 96pt;"> <col width="550" style="width: 413pt; mso-width-source: userset; mso-width-alt: 10057;"> <col width="128" style="width: 96pt;" span="2"> <tbody> </tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi,

Unfortunately your posted data appears to contain many inconsistencies and errors, so it's hard to be sure of any solution.

For example, your formula in G34 begins:

IF(H35>0

which is referencing not only row 35 (i.e. the row below), which seems wrong, but also column H, which seems to contradict your comments about it being column B which should be checked for blankness.

Also, it would be useful to know in which row your formulas begin. From the excerpt you give, the portion:

ROWS($1:25)

would suggest that you are beginning in row 10.

Lots of unknowns, but as a first guess, and assuming the entries in column B are text, not numbers, in G10:

=IF(AND(COUNTIF(B$10:B10,">""")=1,B10<>""),"A",IF(B10<>"",SUBSTITUTE(ADDRESS(1,1+COLUMN(INDIRECT(LOOKUP(1,0/(G9:G$10<>""),G9:G$10)&1)),4),1,""),""))

and copied down.

Regards
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,101
Members
449,066
Latest member
Andyg666

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