+ Reply to Thread
Results 1 to 6 of 6

Best formula to use to extract data - SUMIFS ?

  1. #1
    Registered User
    Join Date
    09-08-2019
    Location
    East Sussex, England
    MS-Off Ver
    16.8 Excel for Mac
    Posts
    6

    Best formula to use to extract data - SUMIFS ?

    Hi,
    I received help from the group some weeks ago suggesting I use SUMIFS to group and calculate household bills that trying to analyse.

    I've attached a sample Excel file.

    Although I'm a relative newbie to Excel, I feel what I'm trying to achieve is pretty basic stuff, but I'm running into problems.

    I'm using Excel For Mac v16.29.1 on an iMac 2011 generation, running High Sierra 10.13.6

    The Bills are entered in a random date order. New 'Suppliers', 'Categories' and 'Source'* are added to columns A & B respectively in a separate Data! sheet which are used to make a drop down tables (*'Source' being a code describing how the bill was paid and by whom).

    From the randomly entered Bills I want to find totals by various date ranges ( Yr, Monthly, Weekly) for each 'Category', 'Supplier' and & 'Source'.

    I entered a test SUMIFS code at K3 to extract from the sample Bills any bill for 2017 that met the Category criteria of M2.

    I found that apart from not working, I realise that I would need to hand code all the date ranges rather than use cell references. But there is an even more basic problem: how can I create a code that I don't need to update to reference the range of bills - i.e. the first is always going to be at Row 3, but I've no idea where it will end, indeed the point is it's meant to be on-going.

    I hope ya'll will be able to understand what I'm trying to achieve and can give some help.

    Many thanks.
    Hal.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,780

    Re: Best formula to use to extract data - SUMIFS ?

    M3=SUMIFS($E$3:$E$100,$A$3:$A$100,">="&$I3,$A$3:$A$100,"<="&$J3,$F$3:$F$100,M$2)

    copy across and down
    Last edited by CARACALLA; 09-27-2019 at 10:13 AM.

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Best formula to use to extract data - SUMIFS ?

    Or:

    Please Login or Register  to view this content.
    Not sure which is more efficient but they both will work. Note you'll need to adjust the 3:20 range to capture all the bills you enter.

    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Registered User
    Join Date
    09-08-2019
    Location
    East Sussex, England
    MS-Off Ver
    16.8 Excel for Mac
    Posts
    6

    Re: Best formula to use to extract data - SUMIFS ?

    Thank you both Caracalla and WideBoyDixon for your formulas. They work for the 'Category' section, but not if I extend the fill to 'Suppliers' and 'Source".

    There are also errors in how it works in both the monthly and weekly sections.

    Further, if I understand you both correctly, it appears that the vertical range (i.e. the number of ALL bills entered, would have to be updated to reflect any new bills entered, which would be tedious, if not impossible.

    I'm thinking there must be a way to count the number of row to which the entered bills extend, so that the row-range to be specified would reside in two cells - the start row cell & a cell which counts or automatically states the last row with data in it, for each of Cols:A.B.D,E & F...if you see what I mean.

    I'd like to find a a way that automatically sets the range for each of the calculation ares (Categories, Suppliers Source etc) or I guess the only other way would be to set a very large range to begin with of say 5,000 rows

    I attache the file with WideBoys formula inserted and some extra bill data added, including a wild one at row 20
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,780

    Re: Best formula to use to extract data - SUMIFS ?

    Updated formulas

    Check the file
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-08-2019
    Location
    East Sussex, England
    MS-Off Ver
    16.8 Excel for Mac
    Posts
    6

    Re: Best formula to use to extract data - SUMIFS ?

    Hi Caracalla,

    Thanks for the very swift response. Yes, that works fine. I did check over the previous formula and I must have done something wrong somewhere in filling the rows and columns.

    Thanks you for your patient and excellent help.

    Kind regards,

    Hal

+ 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] SUMIFS Formula pulling incorrect Data
    By OFDCS in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-28-2017, 12:39 PM
  2. [SOLVED] Extract not listed materials and sumifs
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2017, 09:43 AM
  3. [SOLVED] Using sumifs formula with trimmed data help
    By shrubfact in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-27-2017, 09:59 AM
  4. Sum data from tab A to tab B with sumifs formula
    By Ninocka in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-23-2016, 07:57 AM
  5. Filtering data from the results of a sumifs formula
    By marks_28 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2013, 11:55 AM
  6. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM
  7. INDEX, SUMIFS, AND LOOKUP to extract data
    By 58Spring in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-18-2012, 09:53 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