[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 57
  • Last Modified:

Draw several entries from another worksheet and enter them in one cell separated by manual line breaks

Dear Experts:

I wonder whether the following is feasible with a formula:

I would like to draw the WashingCode Descriptions for different items and enter them in the Column that has got the Description_Formula Header.

The code descriptions are to be separated by a manual line break.

Is this feasible with a formula or do I need VBA programming?

I have attached a similar sample table for your convenience.

Help is very much appreciated. Thank you very much in advance.

Regards, Andreas


ItemCode     WashingCode_1    WashingCode_2      WashingCode_3          Description_Formula
Z1                         101                             102                        103                                 Sterile
                                                                                                                                        Manual Washing
                                                                                                                                        No Rubbing
                                                                                                                                     
Z2                         102                             104                       105                                   Manual Washing
                                                                                                                                        Dry Cleaning
                                                                                                                                        Mild Detergents



On the Second Worksheet (named WashingCodes) the WashingCodes are listed in a table along with their description

WashingCodes                   Description
101                                           Sterile
102                                           Manual Washing
103                                           No Rubbing
104                                           Dry Cleaning
105                                           Mild Detergents

Draw_mulitple_entries_merge_in_one_.xlsx
0
AndreasHermle
Asked:
AndreasHermle
  • 4
  • 2
  • 2
2 Solutions
 
Rob HensonIT & Database AssistantCommented:
In F use the following formula:

=VLOOKUP(B2,Tabelle1[#All],2,FALSE)&CHAR(10)&VLOOKUP(C2,Tabelle1[#All],2,FALSE)&CHAR(10)&VLOOKUP(D2,Tabelle1[#All],2,FALSE)&CHAR(10)&VLOOKUP(E2,Tabelle1[#All],2,FALSE)

Format the cell with Wrap Text enabled.

CHAR(10) is the Ascii code for a Carriage Return.
0
 
KoenCommented:
0
 
Rob HensonIT & Database AssistantCommented:
Amended to allow for missing or erroneous codes:

=IFERROR(VLOOKUP(B2,Tabelle1[#All],2,FALSE)&CHAR(10),"")&IFERROR(VLOOKUP(C2,Tabelle1[#All],2,FALSE)&CHAR(10),"")&IFERROR(VLOOKUP(D2,Tabelle1[#All],2,FALSE)&CHAR(10),"")&IFERROR(VLOOKUP(E2,Tabelle1[#All],2,FALSE),"")
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
AndreasHermleAuthor Commented:
Hi Koen,

wow this is awesome, exactly as I wanted it

Hi Rob,
will test it this afternoon and then let you know.

Thank you to both of you ...
0
 
Rob HensonIT & Database AssistantCommented:
Koen's file has the exact same formula as I posted in my first comment.  The second version just allows for error trapping.
0
 
AndreasHermleAuthor Commented:
I suggest splitting the points. Koen, thank you very much for already entering the formula in my sample file, very convenient.

I realy appreciate your great job, Koen and Rob

Have a nice weekend, Andreas
0
 
KoenCommented:
Yeah Rob was first but i was making the excel..comments are only minutes apart...
0
 
Rob HensonIT & Database AssistantCommented:
Glad to help.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now