![]() |
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
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) |
#3
|
|||
|
|||
![]()
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))),"")} |
#4
|
||||
|
||||
![]()
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?
|
#5
|
|||
|
|||
![]()
I have attached an example spreadsheet, I think.
|
#6
|
||||
|
||||
![]()
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. |
#7
|
|||
|
|||
![]()
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! |
#8
|
||||
|
||||
![]()
__________________
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 |
#9
|
|||
|
|||
![]()
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.
|
#10
|
||||
|
||||
![]()
That was a different person who posted that remark.....
|
#11
|
||||
|
||||
![]()
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 |
![]() |
|
![]() |
||||
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 |
![]() |
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 |