• 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
    • 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Excel - Collect Data|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Excel - Collect Data|General Excel Questions & Answers|Excel Forum|My Online Training Hub

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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…Excel - Collect Data
sp_PrintTopic sp_TopicIcon
Excel - Collect Data
Avatar
mymalone
Member
Members
Level 0
Forum Posts: 102
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline
1
August 25, 2017 - 10:42 pm
sp_Permalink sp_Print

Good Morning

I need some help with a spreadsheet that is to pull data from specific sheets.  The way I have it set up is not very efficient.  I have six workbooks titled, Sheet11, Sheet12, Sheet13, Sheet14, Sheet15 and Sheet16.  My question is how would I adjust my formula so that I can have one formula to pull from specific sheet.   I enter data in column J and column K and the results is listed in column L.  I would like to add Column I  for the name of the sheet.  So once I enter the data into the appropriate columns the correct data is populated.

Here's my formula.  CollectDataFromGroup($J43,"Sheet11",$K43,COLUMN(A1))

Any ideas on how to revise the formula is greatly appreciated.

Thanks Mel

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1431
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
2
August 26, 2017 - 12:32 am
sp_Permalink sp_Print

Hi Mel

Not sure if this is what you are looking for.

It would help if you can post a sample file with the expected result.

Sunny

Avatar
mymalone
Member
Members
Level 0
Forum Posts: 102
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline
3
August 26, 2017 - 1:18 am
sp_Permalink sp_Print

Sunny

Thanks for the reply.  Attached is the file.  I hope it helps.  I would like to see if there is a way to combine or expand the CollectDataFromGroup formula to include the Sheet Name as one of the selection criteria.

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1431
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
August 26, 2017 - 1:29 am
sp_Permalink sp_Print

There is no file attached.

Avatar
mymalone
Member
Members
Level 0
Forum Posts: 102
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline
5
August 26, 2017 - 1:34 am
sp_Permalink sp_Print

Sorry, this is my first posting.  I will try again.

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1431
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
6
August 26, 2017 - 12:27 pm
sp_Permalink sp_Print

Hi Mel

Thanks for attaching the file as it better describe your requirements. It is more complicated than what you have described in your post Cry

I have created another UDF named ExtractData(WorksheetName , Date , GroupNo , RowNo ,IndexNo) that require 5 arguments:

1) WorksheetName :- Name of the worksheet where your data is

2) Date :- The date you are looking for in column A of the data sheet

3) GroupNo :- Your grouping number

4) RowNo  :- The row where the GroupNo are located  (currently at row 16)

5) IndexNo :- The column of the Group that you wanted to extract from (columns 1 to 5 as per your example)

Hope this helps.

Sunny

Avatar
mymalone
Member
Members
Level 0
Forum Posts: 102
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline
7
August 29, 2017 - 1:25 am
sp_Permalink sp_Print

Sunny,  Thank you so very much.  This is perfect! 

Avatar
mymalone
Member
Members
Level 0
Forum Posts: 102
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline
8
November 16, 2017 - 7:01 am
sp_Permalink sp_Print

Sunny

I would like to create another extract data table by entering the worksheet name and date.  Then the data will pull from worksheet "DataSheetMorn",

Beginning with Row 449 columns AE, AF, AG, AH, AI, and AJ.  I could not figure out how to modify the previous macro so that it can extract the data.

Can you help?

Thanks

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1431
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
9
November 16, 2017 - 9:05 am
sp_Permalink sp_Print

Please attach some sample data and the expected results.

Avatar
mymalone
Member
Members
Level 0
Forum Posts: 102
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline
10
November 17, 2017 - 5:07 am
sp_Permalink sp_Print

Sunny

Here is the file.

 

Thanks

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1431
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
11
November 18, 2017 - 9:33 am
sp_Permalink sp_Print

There is no attachment.

Avatar
mymalone
Member
Members
Level 0
Forum Posts: 102
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline
12
November 20, 2017 - 2:02 am
sp_Permalink sp_Print

Here is the file. 

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1431
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
13
November 20, 2017 - 10:22 am
sp_Permalink sp_Print

Try this.

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Riny van Eekelen, Ivan Kulubya, Christian Huapaya, Vijay Vardhan
Guest(s) 26
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1431
Anders Sehlstedt: 845
Velouria: 574
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 213
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 185
Newest Members:
Vicky Otosnika
Abhishek Singh
Kevin Sojourner
Kara Weiss
And Woox
Armani Quenga
moshood bello
annelies b
James1989
lucy gilmour
Forum Stats:
Groups: 3
Forums: 24
Topics: 6045
Posts: 26523

 

Member Stats:
Guest Posters: 49
Members: 31492
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information
  • 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
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

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.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x