Nested If Statement with Index and Match

CrazyDave

New Member
Joined
Jan 15, 2014
Messages
38
Office Version
  1. 2013
Platform
  1. Windows
Good day good friends,
I have a list of names which I would like to automatically fill into another tab on my spreadsheet. That bit is easy.
My problem is that there are three entries in the first list, that I don't want in the second list. They are important in the first, but not needed in the second.

In A6:A30 of a tab called WeeklyTimings, I have
Billy
Jessica
Sarah
Simon
Brisbane 1
Terry
Abraham
Albert
Brisbane 2
Peter
Barry
John
Ingrid
Brisbane 3

I need this list to appear in A7 downwards of a tab called Mornings, minus the three "Brisbane" entries. The position of the Brisbane entries is completely random. The number of total names is completely random.
I could use a formula in Column B on WeeklyTimings to sort which names to carry over, but I don't have the room for that...
I'm hopeful someone can show me a formula to put into the Mornings tab which will do the trick. I have been tussling with this for a few weeks with no luck.

Many thanks, in anticipation... :)
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
with Power Query
you can load result wherever you want

Column1Column1
BillyBilly
JessicaJessica
SarahSarah
SimonSimon
Brisbane 1Terry
TerryAbraham
AbrahamAlbert
AlbertPeter
Brisbane 2Barry
PeterJohn
BarryIngrid
John
Ingrid
Brisbane 3

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Filter = Table.SelectRows(Source, each not Text.StartsWith([Column1], "Brisbane"))
in
    Filter
 
Upvote 0
Sorry Sandy666, what is Power Query?

Thought I was getting to know Excel...

ps... thanks for your quick response!
 
Upvote 0
What version of Excel are you using?
Please update you account details to show this, as it affects which functions you can use.
 
Upvote 0
Two options depending on your version
+Fluff New.xlsm
ABCD
1NamesFilterAggregate
2BillyBillyBilly
3JessicaJessicaJessica
4SarahSarahSarah
5SimonSimonSimon
6Brisbane 1TerryTerry
7TerryAbrahamAbraham
8AbrahamAlbertAlbert
9AlbertPeterPeter
10Brisbane 2BarryBarry
11PeterJohnJohn
12BarryIngridIngrid
13John 
14Ingrid 
15Brisbane 3 
16
Main
Cell Formulas
RangeFormula
C2:C12C2=FILTER(A2:A50,(LEFT(A2:A50,8)<>"Brisbane")*(A2:A50<>""))
D2:D15D2=IFERROR(INDEX($A$2:$A$50,AGGREGATE(15,6,(ROW($A$2:$A$50)-ROW($A$2)+1)/(LEFT($A$2:$A$50,8)<>"Brisbane")/($A$2:$A$50<>""),ROWS(D$2:D2))),"")
Dynamic array formulas.
 
Upvote 0
Many thanks Sandy666 and Fluff for your responses. I haven't yet got into Dynamic Arrays, maybe one day...
I've just downloaded Power Query for my 2013 version of Excel, and will give that a go.

Profile has been updated too. :)
 
Upvote 0
You are welcome & thanks for the feedback :giggle:
Let us know if it will work for you
 
Upvote 0
Hmm, perhaps it is the 'Brisbane' issue but when reading this I began to think the unwanted items might be the ones marked with a number, no matter what the text before. In case of that

20 07 26.xlsm
ABC
1
2
3
4
5NamesNew List
6BillyBilly
7JessicaJessica
8SarahSarah
9SimonSimon
10Brisbane 1Terry
11TerryAbraham
12AbrahamAlbert
13AlbertPeter
14Brisbane 2Barry
15PeterJohn
16BarryIngrid
17John 
18Ingrid 
19Brisbane 3 
20 
21 
Omit Names
Cell Formulas
RangeFormula
C6:C21C6=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW(A$6:A$30)/ISERROR(RIGHT(A$6:A$30,1)+0),ROWS(C$6:C6)))&"","")
 
Upvote 0
Solution
Thankyou Peter!!!
You are quite correct. I submitted a false list of names, and while I could have easily substituted Brisbane for the correct name, this new formula is much easier to use.

The formula provided by Fluff did work, but required more work to edit across the entire week.

Still trying to find the time to get my head around PowerQuery... I've had a quick look, and realised it needed more time than I had...
 
Upvote 0

Forum statistics

Threads
1,214,878
Messages
6,122,062
Members
449,064
Latest member
scottdog129

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