#N/A cell skip.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,444
Office Version
  1. 2007
Platform
  1. Windows
Hi,
Here below is the display of my table that generate my combinations sets.
The return of other files are generated into this final table B13:F18 where all cells are not filled so it return #N/A.
So for my set combination to work in consecutive way and not skip, I have to physically type those numbers in the yellow table above in B5:F10.

123.png


In cell H7 down I have this formula :
=IF(ROWS($H$5:$H5)>COUNTA($B$5:$B$10)*COUNTA($C$5:$C$10)*COUNTA($D$5:$D$10)*COUNTA($E$5:$E$10)*COUNTA($F$5:$F$10),"",CONCATENATE(TEXT(INDEX($B$5:$B$10,MOD(INT((ROWS($H$5:$H5)-1)/(COUNTA($C$5:$C$10)*COUNTA($D$5:$D$10)*COUNTA($E$5:$E$10)*COUNTA($F$5:$F$10))),COUNTA($B$5:$B$10))+1),"00"),TEXT(INDEX($C$5:$C$10,MOD(INT((ROWS($H$5:$H5)-1)/(COUNTA($D$5:$D$10)*COUNTA($E$5:$E$10)*COUNTA($F$5:$F$10))),COUNTA($C$5:$C$10))+1),"00"),TEXT(INDEX($D$5:$D$10,MOD(INT((ROWS($H$5:$H5)-1)/(COUNTA($E$5:$E$10)*COUNTA($F$5:$F$10))),COUNTA($D$5:$D$10))+1),"00"),TEXT(INDEX($E$5:$E$10,MOD(INT((ROWS($H$5:$H5)-1)/(COUNTA($F$5:$F$10))),COUNTA($E$5:$E$10))+1),"00"),TEXT(INDEX($F$5:$F$10,MOD(ROWS($H$5:$H5)-1,COUNTA($F$5:$F$10))+1),"00")))

Then in :
J5 =MID(H5,1,1)+0
K5 =MID(H5,2,1)+0
L5 =MID(H5,3,1)+0
Etc...
Then in :
W5 : =CONCATENATE(J5,K5)*1
X5 : =CONCATENATE(L5,M5)*1
Etc...
So this way it works fine for me but I would like for the return of those files to be calculated directly without me retyping those numbers in the yellow table.

Because if I use = cell from the green table to the yellow this is what I get :

125.png



So what kind of formula could be use in H column that it would ignore the #N/A cells ?
Thank you.
 

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).
I have assumed the green cells are actual numbers formatted to show leading zeros for the numbers less than 10. If that is so then try the formula shown for B5:F10 and then change every COUNTA in your big formula to COUNT

24 08 13.xlsm
BCDEFGH
4
509243337690924333769
6   64600924333760
7     0924336469
8     0924336460
9      
10      
11 
12 
130924333769 
14#N/A#N/A#N/A6460 
15#N/A#N/A#N/A#N/A#N/A 
16#N/A#N/A#N/A#N/A#N/A 
17#N/A#N/A#N/A#N/A#N/A 
18#N/A#N/A#N/A#N/A#N/A 
serge
Cell Formulas
RangeFormula
B5:F10B5=IF(ISNUMBER(B13),B13,"")
H5:H18H5=IF(ROWS($J$5:$J5)>COUNT($B$5:$B$10)*COUNT($C$5:$C$10)*COUNT($D$5:$D$10)*COUNT($E$5:$E$10)*COUNT($F$5:$F$10),"",CONCATENATE(TEXT(INDEX($B$5:$B$10,MOD(INT((ROWS($J$5:$J5)-1)/(COUNT($C$5:$C$10)*COUNT($D$5:$D$10)*COUNT($E$5:$E$10)*COUNT($F$5:$F$10))),COUNT($B$5:$B$10))+1),"00"),TEXT(INDEX($C$5:$C$10,MOD(INT((ROWS($J$5:$J5)-1)/(COUNT($D$5:$D$10)*COUNT($E$5:$E$10)*COUNT($F$5:$F$10))),COUNT($C$5:$C$10))+1),"00"),TEXT(INDEX($D$5:$D$10,MOD(INT((ROWS($J$5:$J5)-1)/(COUNT($E$5:$E$10)*COUNT($F$5:$F$10))),COUNT($D$5:$D$10))+1),"00"),TEXT(INDEX($E$5:$E$10,MOD(INT((ROWS($J$5:$J5)-1)/(COUNT($F$5:$F$10))),COUNT($E$5:$E$10))+1),"00"),TEXT(INDEX($F$5:$F$10,MOD(ROWS($J$5:$J5)-1,COUNT($F$5:$F$10))+1),"00")))
 
Upvote 0
Hi Peter,
Thank you so much it works like a charm, I really appreciate the help.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

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