+ Reply to Thread
Results 1 to 3 of 3

Pull out multiple values from table

  1. #1
    Registered User
    Join Date
    11-12-2015
    Location
    England
    MS-Off Ver
    2016
    Posts
    26

    Pull out multiple values from table

    So I've got a table that the user submits data to, which includes, amongst other things, a date/time and net profit for each entry. When an entry is submitted, the first column gets a date and time stamp (vba "now"). I have a stats box where I want to show 'total profit for past 24 hours/7 days/28 days'. I need a formula to recognise these date/times periods and to sum together the total net profits, which sit 6 rows across.

    Many Thanks

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Pull out multiple values from table

    Assuming you mean 6 columns across and
    Without a spreadsheet to look at (hint: Go Advanced>Manage Attachments), how about

    =SUMIF($A$2:$A$100, ">=" & NOW()-1, $D$2:$I100)
    =SUMIF($A$2:$A$100, ">=" & NOW()-7, $D$2:$I100)
    =SUMIF($A$2:$A$100, ">=" & NOW()-28, $D$2:$I100)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    11-12-2015
    Location
    England
    MS-Off Ver
    2016
    Posts
    26

    Re: Pull out multiple values from table

    Genius! You get extra points for deciphering my poor description

    Thank you very much

+ 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] Lookup or index on multiple parameters and pull table heading for matching values
    By pcrewlok in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-24-2015, 07:07 PM
  2. Replies: 1
    Last Post: 04-20-2015, 03:18 PM
  3. VBA to pull Multiple Values
    By splash_b in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2014, 01:18 AM
  4. [SOLVED] How to pull multiple values
    By sandman85 in forum Excel General
    Replies: 5
    Last Post: 04-15-2012, 10:00 PM
  5. can a pivot table pull from multiple worksheets?
    By Todd in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2006, 08:30 PM
  6. [SOLVED] can a pivot table pull from multiple worksheets?
    By Todd in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-22-2006, 02:10 PM
  7. How to pull values from the pivot table fields, through the code/.
    By seven_snow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2006, 07:50 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