Formula listing items from several columns in one column

lechev65

Board Regular
Joined
Mar 7, 2010
Messages
147
Hi Mr Excel,

In columns B, C, D & E I have titles with items. I need formula listing the titles (upper case letters) with different items (lower case letters) in column A as shown on the example below.
The number of the items is variable linked to database.
[TABLE="width: 364"]
<TBODY>[TR]
[TD][/TD]
[TD]A</SPAN>
[/TD]
[TD]B</SPAN>
[/TD]
[TD]C</SPAN>
[/TD]
[TD]D</SPAN>
[/TD]
[TD]E</SPAN>
[/TD]
[/TR]
[TR]
[TD]1</SPAN>
[/TD]
[TD]U </SPAN>
[/TD]
[TD]U </SPAN>
[/TD]
[TD]Y </SPAN>
[/TD]
[TD]Z</SPAN>
[/TD]
[TD]W</SPAN>
[/TD]
[/TR]
[TR]
[TD]2</SPAN>
[/TD]
[TD]k</SPAN>
[/TD]
[TD]k</SPAN>
[/TD]
[TD]c</SPAN>
[/TD]
[TD]o</SPAN>
[/TD]
[TD]m</SPAN>
[/TD]
[/TR]
[TR]
[TD]3</SPAN>
[/TD]
[TD]i</SPAN>
[/TD]
[TD]i</SPAN>
[/TD]
[TD]s</SPAN>
[/TD]
[TD]j</SPAN>
[/TD]
[TD]b</SPAN>
[/TD]
[/TR]
[TR]
[TD]4</SPAN>
[/TD]
[TD]r</SPAN>
[/TD]
[TD]r</SPAN>
[/TD]
[TD]h</SPAN>
[/TD]
[TD]r</SPAN>
[/TD]
[TD]a</SPAN>
[/TD]
[/TR]
[TR]
[TD]5</SPAN>
[/TD]
[TD]g</SPAN>
[/TD]
[TD]g</SPAN>
[/TD]
[TD][/TD]
[TD]u</SPAN>
[/TD]
[TD]q</SPAN>
[/TD]
[/TR]
[TR]
[TD]6</SPAN>
[/TD]
[TD]v</SPAN>
[/TD]
[TD]v</SPAN>
[/TD]
[TD][/TD]
[TD]f</SPAN>
[/TD]
[TD]c</SPAN>
[/TD]
[/TR]
[TR]
[TD]7</SPAN>
[/TD]
[TD]Y </SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD]r</SPAN>
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R]
[TR]
[TD]20</SPAN>
[/TD]
[TD]m</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21</SPAN>
[/TD]
[TD]b</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22</SPAN>
[/TD]
[TD]a</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23</SPAN>
[/TD]
[TD]q</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]24




</SPAN>
[/TD]
[TD]c



</SPAN>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]

Thank you in advance!
Krasimir
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

Assuming your data is in B1:E10, this array formula** in A1:

=IF(ROWS($1:1)>COUNTIF($B$1:$E$10,"*"),"",INDIRECT(TEXT(SUM(10^{3,0}*SUBSTITUTE(MID(SMALL(IF(LEN($B$1:$E$10)>0,COLUMN($B$1:$E$10)*10^6+ROW($B$1:$E$10)),ROWS($1:1)),{5,1},3),"0","")),"R000C000"),0))


Copy down until you start to get blanks for the results.

Regards


**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).</SPAN></SPAN>
 
Upvote 0
Hi XOR LX,

Thank you very much for the prompt reply!

I have tried the formula and it works perfectly applied for the above example table.

Actually the columns are 150 (from B to EU) with 10 to 200 items in each column and

the total number of the items listed in column A could be more than 20000~30000.

Could you please advise how to modify the formula?

Thank you in advance!

Kind regards,

Krasimir
 
Upvote 0
Hi,

Slightly different approach (the above would fail with row numbers containing a zero):

Assuming a data range of B1:EU200, and also that the blanks, if any, at the end of each column are "genuine" blanks (and not, for example, the "" as the result of e.g. formulas in those cells), then go to Name Manager and define a new name, Row_Array say, as:

=ROW(INDIRECT("1:"&COLUMNS($B$1:$EU$200)))


Your (array) formula in A1 is then:

=IF(ROWS($1:1)>COUNTA($B$1:$EU$200),"",INDEX(INDEX($B$1:$EU$200,,MATCH(TRUE,MMULT(--(Row_Array>=TRANSPOSE(Row_Array)),SUBTOTAL(3,OFFSET($B$1:$B$200,,Row_Array-1,,)))>=ROWS($1:1),0)),IFERROR(1+ROWS($1:1)-LOOKUP(ROWS($1:1),1+MMULT(--(Row_Array>=TRANSPOSE(Row_Array)),SUBTOTAL(3,OFFSET($B$1:$B$200,,Row_Array-1,,)))),ROWS($1:1))))

Again, copy down until you start to get blanks for the results.

Regards
 
Upvote 0
Dear</SPAN></SPAN>
The formula is amazing and made me very happy! </SPAN>Thank you very very much again!</SPAN>
Is that rude or too much if I ask you for one more formula?</SPAN>
The formula you have advised is in Sheet1 in A1:A3000 and lists the items in columns from B to EU.</SPAN>
My database is in Sheet2 in columns A to ZZ with approximately 10 to 200 items in each column.</SPAN>
Every time I have to copy and paste the data from Sheet2 to Sheet1 depending on the needs … </SPAN>
Could you please advise a formula in Sheet1 columns B to EU, matching the criteria manually input </SPAN>
in B1,C1,D1,E1,F1,…EU1 and returning the values from the respective columns in Sheet2 as shown below?</SPAN>

[TABLE="width: 503"]
<TBODY>[TR]
[TD="colspan: 10"]Sheet1</SPAN>
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]A</SPAN>
[/TD]
[TD]B</SPAN>
[/TD]
[TD]C</SPAN>
[/TD]
[TD]D</SPAN>
[/TD]
[TD]E</SPAN>
[/TD]
[TD]F</SPAN>
[/TD]
[TD]G</SPAN>
[/TD]
[TD]H</SPAN>
[/TD]
[TD]J</SPAN>
[/TD]
[/TR]
[TR]
[TD]1</SPAN>
[/TD]
[TD]U</SPAN>
[/TD]
[TD]U</SPAN>
[/TD]
[TD]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AN>
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]asda</SPAN>
[/TD]
[/TR]
[TR]
[TD]7</SPAN>
[/TD]
[TD]
[/TD]
[TD]ba</SPAN>
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]asd</SPAN>
[/TD]
[/TR]
[TR]
[TD]8</SPAN>
[/TD]
[TD]
[/TD]
[TD]ab</SPAN>
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]asd</SPAN>
[/TD]
[/TR]
[TR]
[TD]9</SPAN>
[/TD]
[TD]
[/TD]
[TD]ba</SPAN>
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]10</SPAN>
[/TD]
[TD]
[/TD]
[TD]ab</SPAN>
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</TBODY>[/TABLE]

Thank you again in advance!</SPAN>
Krasimir</SPAN>
 
Upvote 0
Sorry - not sure I understand. Why can't you just make the formula reference Sheet2 instead?

Regards
 
Upvote 0
Hi,
Because in Sheet1, column A, I need the items taken only from selected columns.
Sheet2 is my database with all the items.
I do not know how to make formula reference Sheet2 which will list the items from the
colums I need. Please also note that every time I need to make a list of the items from
different columns depending on the needs.

Kind Regards,
Krasimir
 
Upvote 0
Not sure of your actual range references, but seems like you'd need something like this in B2 of Sheet1:

=IF(ROWS($1:1)>COUNTA(INDEX(Sheet2!$A$2:$ZZ$200,,MATCH(Sheet1!B$1,Sheet2!$A$1:$ZZ$1,0))),"",INDEX(Sheet2!$A$2:$ZZ$200,ROWS($1:1),MATCH(Sheet1!B$1,Sheet2!$A$1:$ZZ$1,0)))


Copy across as required and then down until you start to get blanks.

Regards
 
Upvote 0
Hi,
Thank you very much. I do really appreciate your commitment!

The last formula also works well and returns the items to the respective column matching the criteria but somehow interfere the formula in column A!? Please find here below details.

CASE I
New name defined “Row_Array” as:
=ROW(INDIRECT("1:"&COLUMNS($B$1:$EU$200)))
Array formula input in A1:A35
=IF(ROWS($1:1)>COUNTA($B$1:$EU$200),"",INDEX(INDEX($B$1:$EU$200,,MATCH(TRUE,MMULT(--(Row_Array>=TRANSPOSE(Row_Array)),SUBTOTAL(3,OFFSET($B$1:$B$200,,Row_Array-1,,)))>=ROWS($1:1),0)),IFERROR(1+ROWS($1:1)-LOOKUP(ROWS($1:1),1+MMULT(--(Row_Array>=TRANSPOSE(Row_Array)),SUBTOTAL(3,OFFSET($B$1:$B$200,,Row_Array-1,,)))),ROWS($1:1))))

Manually input data in columns B to H

Result:

Sheet1
[TABLE="width: 541"]
<tbody>[TR]
[TD]
[/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]LLLL
[/TD]
[TD]LLLL
[/TD]
[TD]MMMM
[/TD]
[TD]YYYY
[/TD]
[TD]ZZZZ
[/TD]
[TD]WWWW
[/TD]
[TD]RRRR
[/TD]
[TD]OOO
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]3322
[/TD]
[TD]3322
[/TD]
[TD]gjh
[/TD]
[TD]m
[/TD]
[TD]n
[/TD]
[TD]4
[/TD]
[TD]2w3e
[/TD]
[TD]o
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]d
[/TD]
[TD]d
[/TD]
[TD]vbg
[/TD]
[TD]23
[/TD]
[TD]v
[/TD]
[TD]klj
[/TD]
[TD]9i9o
[/TD]
[TD]Q
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]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[TD]31
[/TD]
[TD]OOO
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]32
[/TD]
[TD]o
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]33
[/TD]
[TD]Q
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]34
[/TD]
[TD]o
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]35
[/TD]
[TD]5
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]

Sheet2 - blank

CASE II

Columns B to H from Sheet1 copied in columns A to G oh Sheet2.

The below formula input in Sheet1 B2:H35

=IF(ROWS($1:1)>COUNTA(INDEX(Sheet2!$A$2:$ZZ$200,,MATCH(Sheet1!B$1,Sheet2!$A$1:$ZZ$1,0))),"",INDEX(Sheet2!$A$2:$ZZ$200,ROWS($1:1),MATCH(Sheet1!B$1,Sheet2!$A$1:$ZZ$1,0)))

Result: The formula in column A returns the data only from column B … The formulas in the othe columns works properly returning the data from Sheet2.

Sheet1
[TABLE="width: 541"]
<tbody>[TR]
[TD]
[/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]LLLL
[/TD]
[TD]LLLL
[/TD]
[TD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/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]29
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]30
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]31
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]32
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]33
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]34
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]35
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]

I have checked everything many times but the result is the same: the formula in Sheet1 column A malfunction.

Kind Regards,
Krasimir
 
Upvote 0
Hi,

Assuming a data range of B1:EU200, and also that the blanks, if any, at the end of each column are "genuine" blanks (and not, for example, the "" as the result of e.g. formulas in those cells),...

Yes, apologies. I'm contradicting my own earlier statement now, since this is precisely what you will have in some of these cells now.

Bear with me.

Regards
 
Upvote 0

Forum statistics

Threads
1,223,532
Messages
6,172,878
Members
452,486
Latest member
standw01

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