How to skip one row?

BaGRoS

New Member
Joined
Oct 25, 2022
Messages
34
Office Version
  1. 365
Platform
  1. Windows
I have more than 100 sheets. I extract their name by Name Manager where SheetNames=

Code:
=REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")

and put them in a table:
Code:
=INDEX(SheetNames,A75)
1671111272846.png


Now I would like to be able to decide when to add a sheet with the name Conti in the name and when not. I need to skip a row when I have Conti in the name.
I have started something like this:
Code:
=IF($N$82=1,IF(ISNUMBER(SEARCH("Conti",INDEX(SheetNames,A75))),1,INDEX(SheetNames,A75)),INDEX(SheetNames,A75))
however, I don't know how to skip a row when there is 1
1671111330985.png



Some ideas?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
How about
Excel Formula:
=TOCOL(IF(N82=1,FILTER(SheetNames,ISERROR(SEARCH("Conti",SheetNames))),SheetNames))
Put this in one cell & clear all the cells below & it will spill down
 
Upvote 0
How about
Excel Formula:
=TOCOL(IF(N82=1,FILTER(SheetNames,ISERROR(SEARCH("Conti",SheetNames))),SheetNames))
Put this in one cell & clear all the cells below & it will spill down

1671112905252.png



I don't have =TOCOL in my Excel.

1671113152346.png
 
Upvote 0
Are you putting the formula into a Table?
 
Upvote 0
Are you happy to just use it in a normal range & not a table, it will be a lot simpler & easier?
 
Upvote 0
In that case you can use
Excel Formula:
=TRANSPOSE(IF(N82=1,FILTER(SheetNames,ISERROR(SEARCH("conti",SheetNames))),SheetNames))
as you obviouls don't have the Tocol function yet.
 
Upvote 0
Solution
In that case you can use
Excel Formula:
=TRANSPOSE(IF(N82=1,FILTER(SheetNames,ISERROR(SEARCH("conti",SheetNames))),SheetNames))
as you obviouls don't have the Tocol function yet.
Yes, fantastic.

Now I have to find how set Data Validation only for filtered values :P
 
Upvote 0
What cell is the formula in?
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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