• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Create List Removing Cells with No Data|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Create List Removing Cells with No Data|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Create List Removing Cells with No …
sp_PrintTopic sp_TopicIcon
Create List Removing Cells with No Data
Avatar
Channing Fawcett

New Member
Members
Level 0
Forum Posts: 1
Member Since:
January 21, 2020
sp_UserOfflineSmall Offline
1
January 21, 2020 - 1:04 am
sp_Permalink sp_Print

Hi, 

I am looking to generate a list on a new worksheet that pulls data from Column A if Column B has data input. If there is no data in Column B I want the formula to skip all those rows and inly output the value in Column A if there is data in Column B. 

I do not want to use Pivot Table for this for a variety of reasons. My knowledge has me looking at Index/Match or Vlookup formulas. Thanks in advance for your help. 

Avatar
Guenter Weber
Graz, Austria
Member
Members
Level 0
Forum Posts: 8
Member Since:
July 24, 2019
sp_UserOfflineSmall Offline
2
January 21, 2020 - 5:30 am
sp_Permalink sp_Print

it is a ARRAY formula (STRG + SHIFT + ENTER). copy it and drag it down

=IFERROR(INDIRECT("A"&SMALL(IF(B:B="";"";ROW(A:A));ROW(A2)));"")

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
3
January 21, 2020 - 6:16 am
sp_Permalink sp_Print

Assuming i have set up the data okay (its always better to attach example data so we can see what we are looking at) you have a couple of options here but, in my opinion, the formula is fairly complex.It also depends what version of Excel you are running

In the future you will be able to use the filter function, but this is currently only on Office365 insider. However it is by far the best way

=FILTER(A2:A9,B2:B9="x")

Personally i think advanced filter is the simplest for Excel 2016 and older - you need to select the data table, the criteria (in the same format) and the output location.

https://www.myonlinetraininghu.....ue-records

The formula is an array formula so needs ctrl-shift-enter

=IFERROR(INDEX($A$2:$A$9,SMALL(IF("x"=$B$2:$B$9,ROW($A$2:$A$9)-1),ROWS($E$1:E1))),"")

You could also create a quick macro if you are doing it regularly or on lots of work sheets.

Purfleet

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
January 21, 2020 - 5:31 pm
sp_Permalink sp_Print

Just some minor suggestion to Purfleet's answers. We don't know what is in column B (may not be an x).

Better to check for non-blank instead of x.

=IFERROR(INDEX($A$2:$A$9,SMALL(IF($B$2:$B$9<>"",ROW($A$2:$A$9)-1),ROWS($E$1:E1))),"")

As for the advanced filter, the criteria can be changed from x to <>

Again to check for non-blank.

This also applies for the FILTER function.

Hope this helps.

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Brian Pham, drsven
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
drsven
Annie Witbrod
wahab tunde
Cong Le Duc
Faisal Bashir
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Forum Stats:
Groups: 3
Forums: 24
Topics: 6205
Posts: 27211

 

Member Stats:
Guest Posters: 49
Members: 31880
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.