Can a single cell be concatenated?

kgoshia

Board Regular
Joined
Mar 1, 2010
Messages
52
Below is my single cell formula that is only 1/4 of the way completed, however excel only allows one more argument before it hits its limit of 64 functions.

=IFERROR(IF(AND(E5<=10,E11=1,E14=1),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=10,E11=1,E14=2),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=10,E11=1,E14=3),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=10,E11=2,E14=1),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,4,0),IF(AND(E5<=10,E11=2,E14=2),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,5,0),IF(AND(E5<=10,E11=2,E14=3),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,6,0),IF(AND(E5<=10,E11=3,E14=1),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,7,0),IF(AND(E5<=10,E11=3,E14=2),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,8,0),IF(AND(E5<=10,E11=3,E14=3),VLOOKUP(1,'Minimum Creepage 2N'!A1:I44,9,0),IF(AND(E5<=12.5,E11=1,E14=1),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=12.5,E11=1,E14=2),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=12.5,E11=1,E14=3),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=12.5,E11=2,E14=1),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,4,0),IF(AND(E5<=12.5,E11=2,E14=2),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,5,0),IF(AND(E5<=12.5,E11=2,E14=3),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,6,0),IF(AND(E5<=12.5,E11=3,E14=1),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,7,0),IF(AND(E5<=12.5,E11=3,E14=2),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,8,0),IF(AND(E5<=12.5,E11=3,E14=3),VLOOKUP(2,'Minimum Creepage 2N'!A1:I44,9,0),IF(AND(E5<=16,E11=1,E14=1),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=16,E11=1,E14=2),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=16,E11=1,E14=3),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=16,E11=2,E14=1),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,4,0),IF(AND(E5<=16,E11=2,E14=2),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,5,0),IF(AND(E5<=16,E11=2,E14=3),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,6,0),IF(AND(E5<=16,E11=3,E14=1),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,7,0),IF(AND(E5<=16,E11=3,E14=2),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,8,0),IF(AND(E5<=16,E11=3,E14=3),VLOOKUP(3,'Minimum Creepage 2N'!A1:I44,9,0),IF(AND(E5<=20,E11=1,E14=1),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=20,E11=1,E14=2),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=20,E11=1,E14=3),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=20,E11=2,E14=1),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,4,0),IF(AND(E5<=20,E11=2,E14=2),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,5,0),IF(AND(E5<=20,E11=2,E14=3),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,6,0),IF(AND(E5<=20,E11=3,E14=1),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,7,0),IF(AND(E5<=20,E11=3,E14=2),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,8,0),IF(AND(E5<=20,E11=3,E14=3),VLOOKUP(4,'Minimum Creepage 2N'!A1:I44,9,0),IF(AND(E5<=25,E11=1,E14=1),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=25,E11=1,E14=2),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=25,E11=1,E14=3),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=25,E11=2,E14=1),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,4,0),IF(AND(E5<=25,E11=2,E14=2),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,5,0),IF(AND(E5<=25,E11=2,E14=3),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,6,0),IF(AND(E5<=25,E11=3,E14=1),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,7,0),IF(AND(E5<=25,E11=3,E14=2),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,8,0),IF(AND(E5<=25,E11=3,E14=3),VLOOKUP(5,'Minimum Creepage 2N'!A1:I44,9,0),IF(AND(E5<=32,E11=1,E14=1),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=32,E11=1,E14=2),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=32,E11=1,E14=3),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=32,E11=2,E14=1),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,4,0),IF(AND(E5<=32,E11=2,E14=2),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,5,0),IF(AND(E5<=32,E11=2,E14=3),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,6,0),IF(AND(E5<=32,E11=3,E14=1),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,7,0),IF(AND(E5<=32,E11=3,E14=2),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,8,0),IF(AND(E5<=32,E11=3,E14=3),VLOOKUP(6,'Minimum Creepage 2N'!A1:I44,9,0),IF(AND(E5<=40,E11=1,E14=1),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=40,E11=1,E14=2),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=40,E11=1,E14=3),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,3,0),IF(AND(E5<=40,E11=2,E14=1),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,4,0),IF(AND(E5<=40,E11=2,E14=2),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,5,0),IF(AND(E5<=40,E11=2,E14=3),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,6,0),IF(AND(E5<=40,E11=3,E14=1),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,7,0),IF(AND(E5<=40,E11=3,E14=2),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,8,0),IF(AND(E5<=40,E11=3,E14=3),VLOOKUP(7,'Minimum Creepage 2N'!A1:I44,9,0)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))),)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
This would be my VLOOKUP table I have below. The user has 3 items that to fill in to obtain the correct answer. First the user has to fill in the (V) for working votlage, then a (1,2 or 3) for a degree of protection, then the final argument would be a (I,II or III) for the type of material used to prove along with the other 2 condition to achieve proper protection from being electrically shocked


RMS WORKING
VOLTAGE up to
and including

V

Pollution degree
1 (a)23
Material group
I, II, IIIa, IIIbIIIIIIa, IIIbIIIIIIa, IIIb
(see
Note)
100,080,40,40,41,01,01,0
12.50,090,420,420,421,051,051,05
160,10,450,450,451,11,11,1
200,110,480,480,481,21,21,2
250,1250,50,50,51,251,251,25
320,140,530,530,531,31,31,3
400,160,560,81,11,41,61,8
500,180,60,851,21,51,71,9
630,20,630,91,251,61,82,0
800,220,670,91,31,71,92,1
1000,250,711,01,41,82,02,1
1250,280,751,051,51,92,12,4
1600,320,81,11,62,02,22,5
2000,421,01,42,02,52,83,2
2500,561,251,82,53,23,64,0
3200,751,62,23,24,04,55,0
4001,02,02,84,05,05,66,3
5001,32,53,65,06,37,18,0
6301,83,24,56,38,09,010
8002,44,05,68,0101112,5
10003,25,07,11012,51416
12504,26,39,012,5161820
16005,68,01116202225
20007,5101420252832
25001012,51825323640
320012,5162232404550
400016202840505663
500020253650637180
6300253245638090100
800032405680100110125
10000405071100125140160

<colgroup><col><col><col span="2"><col><col span="3"></colgroup><tbody>
</tbody>
 
Upvote 0
I figured it out by staring at your formula. Use this:

=IFERROR(VLOOKUP(MATCH(E5,{10;12.5;16;20;25;32;40}),Mincreep!A1:I144,CHOOSE(E11,3,CHOOSE(E14,4,5,6),CHOOSE(E14,7,8,9)),FALSE),"There's an error, yo")

Edit: You can add to the MATCH() array as needed without changing anything else.
ie. ...25;32;40;41;42;43;53;66;67;89;90}
 
Last edited:
Upvote 0
I don't understand where the desired result is in your table.
I don't see how criteria 2 & 3 can independently vary a result based on your table.
 
Upvote 0
I figured it out by staring at your formula. Use this:

=IFERROR(VLOOKUP(MATCH(E5,{10;12.5;16;20;25;32;40}),Mincreep!A1:I144,CHOOSE(E11,3,CHOOSE(E14,4,5,6),CHOOSE(E14,7,8,9)),FALSE),"There's an error, yo")

Edit: You can add to the MATCH() array as needed without changing anything else.
ie. ...25;32;40;41;42;43;53;66;67;89;90}

I would make it a table or named range so to require the individual listing of the voltages. That array already exist, why manually duplicate it?
 
Upvote 0
SpillerBD, you are correct.
As I said, I created the formula based on studying his, before I had seen his follow up post.
Better formula is:

=IFERROR(VLOOKUP(MATCH(E5,'Minimum Creepage 2N'!A2:A50),'Minimum Creepage 2N'!A1:I144,CHOOSE(E11,3,CHOOSE(E14,4,5,6),CHOOSE(E14,7,8,9)),F ALSE),"There's an error, yo")
 
Upvote 0
Below are 2 pictures of the spreadsheet, the first picture shows the 3 question the user has to answer with the red circles around the cell and the cell will the green circle is the equation that I am stuck on.

creepage-clearance%20calculator-2_zpsjilydxsj.jpg
[/URL][/IMG]
 
Upvote 0
The array location is different than my last formula. Try this :

=IFERROR(VLOOKUP(MATCH(E5,'Minimum Creepage 2N'!A6:A26),'Minimum Creepage 2N'!A1:I144,CHOOSE(E11,3,CHOOSE(E14,4,5,6),CHOOSE(E14,7,8,9)),F ALSE),"There's an error, yo")
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,249
Members
448,879
Latest member
oksanana

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