Home

Need help with concatenate formula

%3CLINGO-SUB%20id%3D%22lingo-sub-172690%22%20slang%3D%22en-US%22%3ENeed%20help%20with%20concatenate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-172690%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20managed%20to%20put%20together%20a%20spreadsheet%20because%20I'm%20trying%20to%20reduce%20time%20it%20takes%20to%20do%20manual%20data%20entry.%26nbsp%3B%20I've%20tried%20some%20VBA%20but%20my%20skills%20are%20no%20where%20near%20what%20they%20should%20be%20to%20use%20it.%26nbsp%3B%20My%20formula%20skills%20are%20okay%2C%20but%20I%20learned%20it%20on%20my%20own%20so%20my%20knowledge%20is%20limited%20at%20best.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20keep%20it%20brief%2C%20I%20work%20for%20a%20newspaper%20as%20a%20data%20entry%20clerk%20in%20the%20sports%20department.%20We%20have%20to%20enter%20schedules%20in%20their%20system%20Adobe%20InCopy.%26nbsp%3B%20Obtaining%20the%20schedule%20data%20requires%20manual%20lookup%20on%20specific%20high%20school%20athletic%20websites.%26nbsp%3B%20Example%3A%20I%20manually%20go%20to%20high%20school%20A%20website%20athletic%20schedule%20and%20find%20out%20who%20they%20are%20playing%20a%20certain%20day.%26nbsp%3B%20I%20then%20go%20into%20the%20company%20system%20and%20manually%20type%20team%20A%20at%20team%20B%2C%204%3A30%20p.m.%20...%26nbsp%3B%20Yes%2C%20typing%20the%20periods%20in%20between%20pm%20is%20quite%20tedious.%26nbsp%3B%20In%20the%20spreadsheet%20I%20put%20together%2C%20I%20managed%20to%20allow%20typing%20a%20number%20that%20represents%20the%20school%20so%20instead%20of%20type%20out%20the%20word%20%22team%20A%22%20I%20type%20%221%22%20and%20that%20specific%20team%20enters%20into%20a%20specific%20cell.%26nbsp%3B%20Likewise%20for%20the%20team%20they%20are%20playing%20and%20the%20comma%20and%20time.%26nbsp%3B%20The%20time%20is%20also%20represented%20by%20a%20certain%20number%3B%20i.e.%203%3D3%3A30%20p.m.%26nbsp%3B%20After%20typing%20the%20numbers%20in%20that%20represent%20the%20words%2C%20I%20created%20another%20cell%20that%20includes%20those%20words%20all%20concatenated%20together%20in%20one%20cell.%26nbsp%3B%20Ergo%2C%20once%20I'm%20done%20typing%20the%20numbers%2C%20the%20sentence%20of%20%22team%20A%20at%20team%20B%2C%203%3A30%20p.m.%22%20is%20ready%20to%20be%20copy%20and%20pasted%20into%20the%20company%20system.%26nbsp%3B%20It%20has%20shaved%20off%20approximately%2020%20to%2040%20seconds%20of%20data%20entry%20saving%20a%20ton%20of%20time.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20what%20I'm%20trying%20to%20do%20is%20hit%20up%20a%20different%20part%20of%20entering%20these%20schedules.%26nbsp%3B%20Sometimes%20these%20schools%20have%20a%20tournament%20amongst%20multiple%20schools.%26nbsp%3B%20When%20this%20happens%20the%20data%20entry%20appears%20as%20such%3A%20%22Lincoln%20High%20School%20tournament%20(team%20A%2C%20team%20C%2C%20team%20F)%2C%202%20p.m.%26nbsp%3B%20The%20data%20in%20the%20parenthesis%20can%20vary%20from%201%20school%20to%20as%20much%20as%2014%20schools.%26nbsp%3B%20I%20managed%20to%20create%20something%20similar%20to%20the%20above%20method%20of%20entering%20a%20number%20and%20then%20the%20data%20generates%20in%20a%20concatenated%20cell.%26nbsp%3B%20When%20I%20did%20this%2C%20I%20used%20rows%20H25%20all%20the%20way%20down%20to%20H37%2C%20allowing%20the%20user%20to%20enter%20the%20number%20of%20the%20school%20and%20then%20having%20it%20generate%20over%20to%20the%20concatenated%20cell.%26nbsp%3B%20The%20problem%20I'm%20having%2C%20is%20that%20(as%20you%20will%20notice%20in%20my%20formula)%20when%20I%20delete%20a%20number%20that%20represents%20a%20school%2C%20the%20field%20where%20the%20concatenated%20data%20comes%20from%20turns%20to%20%23N%2FA%2C%20thus%20completely%20removing%20the%20entire%20concatenated%20cell%20to%20an%20error%20showing%20the%20%23N%2FA%20in%20the%20cell%20where%20the%20concatenated%20data%20should%20be.%26nbsp%3B%20I've%20gotten%20as%20far%20as%20using%20IFNA%20and%20ISNA%20along%20with%20other%20formulas%20like%20TEXTJOIN%20and%20ISBLANK%20and%20the%20furthest%20I%20got%20where%20I'm%20pretty%20much%20stuck%20is%20IFNA%20and%2For%20ISNA%20don't%20fully%20read%20the%20cell%20range%20of%20H25%20to%20H37.%26nbsp%3B%20The%20data%20that%20appears%20in%20the%20concatenated%20field%20only%20reads%20two%20schools%20(1%20of%20which%20is%20randomly%20from%20the%20middle%20of%20the%20list).%26nbsp%3B%20If%20someone%20can%20help%20me%20here%20that%20would%20be%20great.%26nbsp%3B%20I'm%20trying%20to%20get%20it%20so%20that%20the%20list%20from%20H25%20to%20H37%20is%20variable%20to%20the%20user%20and%20they%20can%20type%20in%20whatever%20schools%20they%20need%20to%20and%20for%20the%20concatenated%20cell%20to%20ignore%20blanks%20when%20there%20isn't%20anything%20entered%20in%2C%20for%20example%20cells%20H30%20to%20H37.%26nbsp%3B%20In%20my%20example%20only%20cells%20H25%20to%20H29%20would%20be%20filled%20with%20a%20number%20representing%20a%20school%20and%20the%20format%20I%20explained%20earlier%20in%20the%20concatenated%20cell%20would%20appear%20like%20so%3A%20%22Lincoln%20high%20school%20tournament%20(team%20A%2C%20team%20C%2C%20team%20F%2C%20team%20G)%2C%202%20p.m.%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20are%20the%20formula's%20I'm%20trying%20to%20use%2C%20however%20if%20anyone%20knows%20of%20a%20better%20one%20or%20more%20efficient%20please%20let%20me%20know%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EOriginal%20one%3C%2FSTRONG%3E%20I%20created%20(it%20works%20but%20I%20can't%20delete%20anything%20out%20of%20cells%20H25%20to%20H37)%3A%3C%2FP%3E%0A%3CP%3E%3DCONCATENATE(E21%2C%22%20%22%2C%22(%22%2CG21%2C%22%2C%22%2C%22%20%22%2CH25%2C%22%2C%22%2C%22%20%22%2CH26%2C%22%2C%22%2C%22%20%22%2CH27%2C%22%2C%22%2C%22%20%22%2CH28%2C%22%2C%22%2C%22%20%22%2CH29%2C%22%2C%22%2C%22%20%22%2CH30%2C%22%2C%22%2C%22%20%22%2CH31%2C%22%2C%22%2C%22%20%22%2CH32%2C%22%2C%22%2C%22%20%22%2CH33%2C%22%2C%22%2C%22%20%22%2CH34%2C%22%2C%22%2C%22%20%22%2CH35%2C%22%2C%22%2C%22%20%22%2CH36%2C%22%2C%22%2C%22%20%22%2CH37%2C%22)%22%2C%22%2C%22%2CH21)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E2nd%20one%3A%3C%2FSTRONG%3E%20This%20was%20the%20closest%20I%20came%20to%20making%20it%20work%20with%20IFNA%2C%20but%20it%20doesn't%20read%20all%20the%20schools%20in%20H25%20to%20H37%3A%3C%2FP%3E%0A%3CP%3E%3DCONCATENATE(E21%2C%22%20%22%2C%22(%22%2CG21%2C%22%2C%22%2C%22%20%22%2C(IFNA(H25%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H26%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H27%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H28%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H29%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H30%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H31%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H32%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H33%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H34%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H35%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H36%26amp%3B%22%2C%22%2C%22%22%26amp%3B%22%20%22%26amp%3B(IFNA(H37%26amp%3B%22)%22%2C%22%22)))))))))))))))))))))))))))%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-172690%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eformula%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormula%20help%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ehelp%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVba%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-293541%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20concatenate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-293541%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20my%20CONCATENATE%20formula%20problem%20I%20am%20combining%20selections%20made%20in%20a%20few%20dropdowns%20in%20cells%2C%20one%20of%20which%20is%20a%20date.%20When%20I%20combine%20the%20answers%2C%20the%20date%20always%20shows%20up%20as%20the%20datevalue%20(example%3A%2011%2F26%2F2018%20shows%20up%20as%2043430).%20I%20need%20that%20part%20to%20show%20as%20%22mm-dd-yyyy%22%20showing%20the%20actual%20date.%20How%20do%20I%20do%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-172871%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20concatenate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-172871%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Dave%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20could%20work%3C%2FP%3E%0A%3CPRE%3E%3DG21%20%26amp%3B%20%22%20(%22%20%26amp%3B%20TEXTJOIN(%22%2C%22%2CTRUE%2CIFERROR(H25%3AH37%2C%22%22))%20%26amp%3B%20%22)%2C%20%22%26amp%3BH21%3C%2FPRE%3E%0A%3CP%3Eif%20you%20use%20it%20as%20array%20formula%20(Ctrl%2BShift%2BEnter)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20452px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F30493i1A608292C91E31FC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHowever%2C%20better%20not%20to%20return%20%23N%2FA%20into%20H%20cells%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Dave Cunningham
Occasional Visitor

I've managed to put together a spreadsheet because I'm trying to reduce time it takes to do manual data entry.  I've tried some VBA but my skills are no where near what they should be to use it.  My formula skills are okay, but I learned it on my own so my knowledge is limited at best.  

To keep it brief, I work for a newspaper as a data entry clerk in the sports department. We have to enter schedules in their system Adobe InCopy.  Obtaining the schedule data requires manual lookup on specific high school athletic websites.  Example: I manually go to high school A website athletic schedule and find out who they are playing a certain day.  I then go into the company system and manually type team A at team B, 4:30 p.m. ...  Yes, typing the periods in between pm is quite tedious.  In the spreadsheet I put together, I managed to allow typing a number that represents the school so instead of type out the word "team A" I type "1" and that specific team enters into a specific cell.  Likewise for the team they are playing and the comma and time.  The time is also represented by a certain number; i.e. 3=3:30 p.m.  After typing the numbers in that represent the words, I created another cell that includes those words all concatenated together in one cell.  Ergo, once I'm done typing the numbers, the sentence of "team A at team B, 3:30 p.m." is ready to be copy and pasted into the company system.  It has shaved off approximately 20 to 40 seconds of data entry saving a ton of time.  

Now what I'm trying to do is hit up a different part of entering these schedules.  Sometimes these schools have a tournament amongst multiple schools.  When this happens the data entry appears as such: "Lincoln High School tournament (team A, team C, team F), 2 p.m.  The data in the parenthesis can vary from 1 school to as much as 14 schools.  I managed to create something similar to the above method of entering a number and then the data generates in a concatenated cell.  When I did this, I used rows H25 all the way down to H37, allowing the user to enter the number of the school and then having it generate over to the concatenated cell.  The problem I'm having, is that (as you will notice in my formula) when I delete a number that represents a school, the field where the concatenated data comes from turns to #N/A, thus completely removing the entire concatenated cell to an error showing the #N/A in the cell where the concatenated data should be.  I've gotten as far as using IFNA and ISNA along with other formulas like TEXTJOIN and ISBLANK and the furthest I got where I'm pretty much stuck is IFNA and/or ISNA don't fully read the cell range of H25 to H37.  The data that appears in the concatenated field only reads two schools (1 of which is randomly from the middle of the list).  If someone can help me here that would be great.  I'm trying to get it so that the list from H25 to H37 is variable to the user and they can type in whatever schools they need to and for the concatenated cell to ignore blanks when there isn't anything entered in, for example cells H30 to H37.  In my example only cells H25 to H29 would be filled with a number representing a school and the format I explained earlier in the concatenated cell would appear like so: "Lincoln high school tournament (team A, team C, team F, team G), 2 p.m."

 

Here are the formula's I'm trying to use, however if anyone knows of a better one or more efficient please let me know:

 

Original one I created (it works but I can't delete anything out of cells H25 to H37):

=CONCATENATE(E21," ","(",G21,","," ",H25,","," ",H26,","," ",H27,","," ",H28,","," ",H29,","," ",H30,","," ",H31,","," ",H32,","," ",H33,","," ",H34,","," ",H35,","," ",H36,","," ",H37,")",",",H21)

 

2nd one: This was the closest I came to making it work with IFNA, but it doesn't read all the schools in H25 to H37:

=CONCATENATE(E21," ","(",G21,","," ",(IFNA(H25&",",""&" "&(IFNA(H26&",",""&" "&(IFNA(H27&",",""&" "&(IFNA(H28&",",""&" "&(IFNA(H29&",",""&" "&(IFNA(H30&",",""&" "&(IFNA(H31&",",""&" "&(IFNA(H32&",",""&" "&(IFNA(H33&",",""&" "&(IFNA(H34&",",""&" "&(IFNA(H35&",",""&" "&(IFNA(H36&",",""&" "&(IFNA(H37&")","")))))))))))))))))))))))))))

 

Thank you 

2 Replies
Highlighted

Hi Dave,

 

This could work

=G21 & " (" & TEXTJOIN(",",TRUE,IFERROR(H25:H37,"")) & "), "&H21

if you use it as array formula (Ctrl+Shift+Enter)

image.png

However, better not to return #N/A into H cells

Highlighted

In my CONCATENATE formula problem I am combining selections made in a few dropdowns in cells, one of which is a date. When I combine the answers, the date always shows up as the datevalue (example: 11/26/2018 shows up as 43430). I need that part to show as "mm-dd-yyyy" showing the actual date. How do I do this?