• 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

Data Entry vs. Data Analysis|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Data Entry vs. Data Analysis|Power Query|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 ForumPower QueryData Entry vs. Data Analysis
sp_PrintTopic sp_TopicIcon
Data Entry vs. Data Analysis
Avatar
Eric French
Member
Members
Level 0
Forum Posts: 7
Member Since:
April 4, 2019
sp_UserOfflineSmall Offline
1
October 20, 2020 - 3:16 am
sp_Permalink sp_Print

I have an excel workbook that I've created for collecting cash-flow forecasts for projects.  The workbook has tables (not formatted as tables) that are setup with categories listed vertically in one column, months listed horizontally in each subsequent column with dollars input at the intersection of the two.  This makes data entry easy but data extraction for analysis difficult.  I've been able to get it to work by using complicated index/match formulas (e.g. "=IF(A1640>B1640,IFERROR(INDEX(INDIRECT(C1640&"!E64:AB64"),1,MATCH(B1640,INDIRECT(C1640&"!E38:AB38"))),"0"),IFERROR(INDEX(INDIRECT(C1640&"!E45:AB45"),1,MATCH(B1640,INDIRECT(C1640&"!E38:AB38"))),"0"))"), but there are significant limitations to this approach.  I recently watched a video on how to consolidate data across sheets using PowerQuery, but the data in the sheets in that video was already in a "friendly" format.  Any tips on how to setup a table for easy data entry by the user while simultaneously making it easy to extract the data for analysis and reporting?

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
October 20, 2020 - 9:44 am
sp_Permalink sp_Print

Hi Eric,

You can use Power Query to append the data on each worksheet, if they have the same column headers, or merge if the column headers are different. Then you can unpivot the data so the months are in a column and the values in another column. That way the data will be in the correct tabular format for analysing with PivotTables or formulas and you won't need to use complex and error prone formulas like the one above 🙂

I hope that points you in the right direction.

Mynda

Avatar
Eric French
Member
Members
Level 0
Forum Posts: 7
Member Since:
April 4, 2019
sp_UserOfflineSmall Offline
3
October 24, 2020 - 12:14 am
sp_Permalink sp_Print

Thanks Mynda.  That worked...sort of.  I was able to append the data and then unpivot once but when I added another column to the end of the original table, the query did not pick up the new column.  I noticed on your unpivot data video that you added new data "inside" the original table, meaning there were columns on either side of the new column.  Is that necessary?  Also, I noticed your column header automatically incremented (from 2015 to 2016 in the first example).  First, is that necessary for the query to pick up the new data and second, how did you do that?  When I add a new column, it just copies the previous column's header and I have to manually change it.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
October 24, 2020 - 8:16 am
sp_Permalink sp_Print

Hi Eric,

When you unpivot, instead of selecting the columns to unpivot, select the columns you don't want to unpivot and then select 'Unpivot Other Columns'. This will ensure any new columns will be included.

Hopefully that will fix the subsequent problem, but let me know if not.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Jeanine Hagge
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 205
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Othman AL MUTAIRI
Misael Gutierrez Sr.
Attif Ihsan
Kieran Fee
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27293

 

Member Stats:
Guest Posters: 49
Members: 31917
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.