+ Reply to Thread
Results 1 to 4 of 4

Import sheet & calculate values

  1. #1
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Import sheet & calculate values

    I have 3 workbooks. One workbook called "Intraday.xls" Report, one called "Sales.xls" & the last one called "Customer Service.xls". I would like a macro that would copy the sheet from "Sales.xls" & put that info on the sheet in "Intraday.xls" called "Intraday (Sales)" & then copy the sheet from "Customer Service.xls" & put that info on the sheet in "Intraday.xls" called "Intraday (CS)". Once those are imported then in workbook called "Intraday Report.xls" on sheet(Over-Unders) I would like it to pull the values based on the date (example: C10=Date, find that date on sheet ("Over-Unders") and preform the calculation to take "AD33" - "V33" and put that value on sheet(Over-Under). Worksheet("Intraday (sales) would go under the Sales column on worksheet(Over-unders) CS would go under the customer service column. I have attached all the worksheets & workbooks to help you understand what I am looking for. The reports that are generated (Sales.xls & Customer Service.xls) are auto generated so it looks like there are spaces in between each half hour intervals. Any help would be greatly appreciated and thank you so much in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Import sheet & calculate values

    James,

    Open your Intraday file, and create a Macro (View- Macro - Record Macro- Call it impCalc) and do what you describe above.

    You can then amend the Code as necessary (e.g. rather than "hard coded" ranges, get the Code to find the last row and copy everything from Row 'whatever' to that last row to wherever you want).

    If there are any problems, we can then focus on resolving the specifics, rather than having to create everything from scratch,

    Ochimus

  3. #3
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Import sheet & calculate values

    Ok I know how to import the sheets however I am fairly new to VBA & unsure of how to find the last row. Can you help me from there.

  4. #4
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Import sheet & calculate values

    To find the last row in a particular sheet,

    Please Login or Register  to view this content.
    Note that the column you used to find the last row ("whichevercolumn") doesn't have to be the one you search ("whatevercolumn")

    Hope this helps

    Ochimus
    Last edited by Ochimus; 10-23-2018 at 08:28 PM.

+ 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. Populate & Calculate Values in Main Sheet from Table
    By EcoMike in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2015, 06:08 PM
  2. To calculate the Minimum values in an excel sheet
    By roopa m j in forum Excel Programming / VBA / Macros
    Replies: 43
    Last Post: 06-26-2013, 12:49 AM
  3. Calculate values in one sheet and place result in another sheet
    By maximpinto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2010, 07:15 AM
  4. How to get the values from another sheet and calculate?
    By gaby58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2008, 06:30 PM
  5. Replies: 1
    Last Post: 01-26-2006, 02:18 AM
  6. [SOLVED] automatically calculate table values via formulas in sheet
    By Montfrooij in forum Excel General
    Replies: 2
    Last Post: 01-24-2006, 04:50 AM

Tags for this Thread

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