Function

Jovana

New Member
Joined
Jan 11, 2022
Messages
2
Office Version
  1. 365
  2. 2003 or older
Platform
  1. Windows
Hi. I need help with writting a formula. I have a table with 2 or 3 columns. In the first column i have the same number in some cells,but i don't know for sure which cells. In the second and third column i have data that is different in each cell but is connected with the same number from the first column.
What i need is a function or formula that can help me with putting all data from each cell from second and third column, in a row connected with one from the same numbers.

Example:
Colum A B C
1) 1 yellow
2) 4 ....
3) 1 pink
4) 7 .....
5) 9 .....
6) 1 green

Solution that i need:
Colum A B C D
1) 1 yellow pink green

Every help will be appreciated.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Welcome to the MrExcel forum!

If you have Excel 2019 or newer, you can do something like this:

Book1 (version 2).xlsb
ABCDE
1NumberColorNumberSet
21yellow1yellow pink green
34horse
41pink
57pony
69zebra
71green
8
Sheet7
Cell Formulas
RangeFormula
E2E2=TEXTJOIN(" ",1,IF(A2:A7=D2,B2:B7,""))
Press CTRL+SHIFT+ENTER to enter array formulas.


Older versions are more problematic. There isn't a function that concatenates variable ranges. You'd have to use a macro. Hope this helps!
 
Upvote 0
Welcome to the MrExcel forum!

If you have Excel 2019 or newer, you can do something like this:

Book1 (version 2).xlsb
ABCDE
1NumberColorNumberSet
21yellow1yellow pink green
34horse
41pink
57pony
69zebra
71green
8
Sheet7
Cell Formulas
RangeFormula
E2E2=TEXTJOIN(" ",1,IF(A2:A7=D2,B2:B7,""))
Press CTRL+SHIFT+ENTER to enter array formulas.


Older versions are more problematic. There isn't a function that concatenates variable ranges. You'd have to use a macro. Hope this helps!
It worked. Thank you for your response.
 
Upvote 0

Forum statistics

Threads
1,224,730
Messages
6,180,609
Members
452,991
Latest member
JM_000888

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