Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2017, 11:15 AM
jpreeshl jpreeshl is offline combine 2 columns into 1 without knowing the size Windows 10 combine 2 columns into 1 without knowing the size Office 2007
Novice
combine 2 columns into 1 without knowing the size
 
Join Date: Jan 2016
Posts: 8
jpreeshl is on a distinguished road
Default combine 2 columns into 1 without knowing the size

I am trying to combine 2 columns of names into one using a formula. The problem is the list of names changes so the range size changes according to who signs up every week.
The first list (list A) may have 50 names one week then 45 the next.
The second list (list B) may have 10 names one week then 15 the next.
All the names are different so I don't need to worry about duplicates.

I have a formula on each row that brings the names from another sheet according to what group they are signed up for. So, the lower rows that don't show names just have a space ("") in them.
I want it to work for up to 75 rows without having to change the formula.


So column A would show 50 names and have the "" in the remaining 25.
Column B would show 10 names and have the "" in the remaining 65.
I want column C to just show the 60 names without any blank rows in between them.
Reply With Quote
  #2  
Old 05-09-2017, 11:25 AM
NBVC's Avatar
NBVC NBVC is offline combine 2 columns into 1 without knowing the size Windows 7 64bit combine 2 columns into 1 without knowing the size Office 2007
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

If I understand correctly, you would need to add a count function and compare it to your row number and return blank if row number is greater than total count.

something lke:

=IF(ROWS($A$2:$A2)>COUNTA(YourList),"",YourCurrentFormula)
Reply With Quote
  #3  
Old 05-09-2017, 11:37 AM
jpreeshl jpreeshl is offline combine 2 columns into 1 without knowing the size Windows 10 combine 2 columns into 1 without knowing the size Office 2007
Novice
combine 2 columns into 1 without knowing the size
 
Join Date: Jan 2016
Posts: 8
jpreeshl is on a distinguished road
Default

My current formula already returns a blank in the row if a names doesn't show up.
Column A formulas {=IFERROR(INDEX(names, SMALL(IF("Y"=Alphabetical!$I$2:$I$185, ROW($E$3:$E$186)-MIN(ROW($E$3:$E$186))+1, ""), ROW(A31))),"")}

Column B formulas {=IFERROR(INDEX(names, SMALL(IF("YC"=Alphabetical!$I$2:$I$185, ROW($E$3:$E$186)-MIN(ROW($E$3:$E$186))+1, ""), ROW(E7))),"")}
Reply With Quote
  #4  
Old 05-09-2017, 11:47 AM
NBVC's Avatar
NBVC NBVC is offline combine 2 columns into 1 without knowing the size Windows 7 64bit combine 2 columns into 1 without knowing the size Office 2007
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Then I am not sure what your aim is.. Are you trying to combine those 2 formulas into one? Can you post a workbook showing what you are trying to achieve?
Reply With Quote
  #5  
Old 05-09-2017, 12:01 PM
jpreeshl jpreeshl is offline combine 2 columns into 1 without knowing the size Windows 10 combine 2 columns into 1 without knowing the size Office 2007
Novice
combine 2 columns into 1 without knowing the size
 
Join Date: Jan 2016
Posts: 8
jpreeshl is on a distinguished road
Default Example spreadsheet

I have attached an example spreadsheet, I think.
Attached Files
File Type: xlsx Example.xlsx (25.6 KB, 12 views)
Reply With Quote
  #6  
Old 05-09-2017, 12:14 PM
NBVC's Avatar
NBVC NBVC is offline combine 2 columns into 1 without knowing the size Windows 7 64bit combine 2 columns into 1 without knowing the size Office 2007
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Try array formula:

=IFERROR(INDEX(Names!$K$2:$K$185, SMALL(IF(("Y"=Names!$I$2:$I$185)+("YS"=Names!$I$2: $I$185), ROW($E$3:$E$186)-MIN(ROW($E$3:$E$186))+1, ""), ROW(A1))),"")

You'll have to replace the Names! references to your actual data references.
Reply With Quote
  #7  
Old 05-09-2017, 04:50 PM
jpreeshl jpreeshl is offline combine 2 columns into 1 without knowing the size Windows 10 combine 2 columns into 1 without knowing the size Office 2007
Novice
combine 2 columns into 1 without knowing the size
 
Join Date: Jan 2016
Posts: 8
jpreeshl is on a distinguished road
Default

THAT IS IT!! I was trying to combine those 2 letter codes in the same statement but could not figure it out. I have been online for hours looking for that simple answer.
Thank you very much for helping me out!
Reply With Quote
  #8  
Old 05-09-2017, 11:18 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline combine 2 columns into 1 without knowing the size Windows 7 64bit combine 2 columns into 1 without knowing the size Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Quote:
Originally Posted by jpreeshl View Post
... For that simple answer.
Did you say simple?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #9  
Old 05-10-2017, 07:05 AM
jpreeshl jpreeshl is offline combine 2 columns into 1 without knowing the size Windows 10 combine 2 columns into 1 without knowing the size Office 2007
Novice
combine 2 columns into 1 without knowing the size
 
Join Date: Jan 2016
Posts: 8
jpreeshl is on a distinguished road
Default

I didn't mean to minimize your effort. It was that I just had to add the + part of that function. I appreciate your time and effort you took to help me out.
Reply With Quote
  #10  
Old 05-10-2017, 07:20 AM
NBVC's Avatar
NBVC NBVC is offline combine 2 columns into 1 without knowing the size Windows 7 64bit combine 2 columns into 1 without knowing the size Office 2007
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

That was a different person who posted that remark.....
Reply With Quote
  #11  
Old 05-10-2017, 09:06 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline combine 2 columns into 1 without knowing the size Windows 7 64bit combine 2 columns into 1 without knowing the size Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Come on Vito, you know you entirely deserve the praise !
It will take me a week to understand your formula...
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
The best practice to print 20,000 rows of 6-columns each in pdf landscape A3 page size while to repe Majdoleen Excel 0 04-25-2017 01:02 PM
Font size showing different (some superscripted??) but tools show its the same size? mikkygee PowerPoint 4 12-14-2015 11:21 PM
An array of words from a document knowing the font style Kreol2013 Word VBA 0 07-08-2013 01:29 AM
combine 2 columns into 1 without knowing the size how change size font to inches size kkepo Word 4 08-28-2012 08:53 PM
Cursor size varies with font size r_lewis@fuse.net Word 0 07-20-2011 06:11 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft