+ Reply to Thread
Results 1 to 4 of 4

Performing Functions Across Sheets - Rows Don't Match

Hybrid View

  1. #1
    Registered User
    Join Date
    12-16-2015
    Location
    Siena, Italy
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    2

    Performing Functions Across Sheets - Rows Don't Match

    Hello! I'm an absolute beginner for anything beyond the absolute basics of Excel.

    I'm trying to do some rudimentary stock market analysis, and have downloaded about a month's worth of data. Each day's data is on a different sheet. There are 8 columns (with Open, High, Low etc. - and a few columns containing functions of those columns). Unfortunately, the rows across sheets don't match, as not all of the stocks turn up in the data each day. The problem looks like this (though on a much greater scale)...

    SHEET 1 SHEET 2 SHEET 3
    A A A
    1 ABC ABC ABC
    2 BBB BBB BBB
    3 CDA DER CDA
    4 DER EAR DER
    5 EAR EBC EBC

    So I can apply functions across different sheets, but at the moment, I have to go through and delete all of the stocks that aren't there every day (to ensure they match up) - that is, I'd delete CDA and EAR from all of the sheets (from the above example) so in the end I'd have something like...

    SHEET 1 SHEET 2 SHEET 3
    A A A
    1 ABC ABC ABC
    2 BBB BBB BBB
    3 DER DER DER
    4 EBC EBC EBC

    ...which apart from being incredibly time consuming, is costing me a lot of interesting data!

    Any help with this would be hugely appreciated!
    AJ

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Performing Functions Across Sheets - Rows Don't Match

    What is it that you are trying to do, ultimately? You can use a VLOOKUP function or an INDEX/MATCH combination to compare one value with another on a different sheet, without having to delete entries.

    Pete

  3. #3
    Registered User
    Join Date
    12-16-2015
    Location
    Siena, Italy
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    2

    Re: Performing Functions Across Sheets - Rows Don't Match

    Thanks for the reply, Pete. Ultimately, I aim to analyse the standard deviations of the daily percentage changes. (One sheet of data per day, and one stock per row - though they don't always correspond between sheets.)

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,453

    Re: Performing Functions Across Sheets - Rows Don't Match

    The way you have phrased your question, it seems that you are already familiar with 3D references and the functions that support them (https://support.office.com/en-us/art...2-787d0bc888b6 ) and that your main concern is getting the data sorted in a way that will put each stock's data on the same row so that it will be easily accessed by the 3D references, is that correct?

    Since you are allowed to delete some of the data, I'm going to assume that you are allowed to manipulate the data. Here's how I think I would proceed.

    1) Compile a list of all of the stocks you are trying to follow. I will assume you know this list before the analysis begins.
    2) You say that your data occupies 8 columns (assumed to be A:H) in each sheet. Enter this list into a column (maybe column AA) of each sheet.
    3) Using Excel's lookup functions, extract each stock's data into additional columns in this helper range. VLOOKUP() is a common function for this: https://support.office.com/en-us/art...8-93a18ad188a1
    4) It might be advantageous to nest the lookup function inside of the IFERROR() function https://support.office.com/en-us/art...6-63f3e417f611 . That way, you can have the function return a text string instead of N/A when a stock is not present on a sheet. Most of the functions that support 3D referencing will ignore text strings in their calculations, but will propagate the N/A errors.

    The results should be a table in each sheet AA:AH where each stock of interest is in the same row, so that you can apply 3D functions to it.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Performing Math Functions on InputBox Values
    By lloydgodin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-12-2012, 04:00 PM
  2. SUMIF & MATCH Functions on Seperate Sheets
    By intreec in forum Excel General
    Replies: 0
    Last Post: 02-01-2012, 07:02 PM
  3. Performing functions on array while holding dimension constant
    By ath1337 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2012, 02:50 PM
  4. Identifying values and performing functions
    By SportsScientist in forum Excel General
    Replies: 1
    Last Post: 06-09-2010, 10:18 AM
  5. filtering data from multi sheets then performing functions on results
    By jrtaylor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2009, 03:54 PM
  6. Data, Performing Functions, and Percentages?
    By shmee150 in forum Excel General
    Replies: 3
    Last Post: 03-16-2009, 06:02 AM
  7. performing one of two functions depending on whether a cell is blank
    By starfish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2008, 12:11 PM
  8. [SOLVED] Performing Multiple Functions in a Column
    By dhoward via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2006, 11:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1