+ Reply to Thread
Results 1 to 6 of 6

Report number of instances in another sheet based on variable conditions

  1. #1
    Registered User
    Join Date
    12-09-2024
    Location
    Kent, England
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2410 Build 16.0.18129.20158) 64-bit
    Posts
    3

    Question Report number of instances in another sheet based on variable conditions

    Hi all,
    First time post from me, as is so often the case with Excel I know what I want the workbook to do, I just dont know how to ask it to do that.

    Screenshot 2024-12-09 092026.png

    This is my front sheet "Main!", each "User" has their own sheet as you can see.
    Cells C2 and D2 are manually inputted dates, which currently dictate the search parameters for the "spend" in column B.
    Cell F2 is a dropdown list of all the names given in column A.
    Cell G2 is a dropdown list of tool types, this list is also used in each of the "User" sheets.

    Here is an example of a "User" sheet.
    Screenshot 2024-12-09 100140.png

    Most of this data is manually inputted, the only exceptions are the previously mentioned list of tool types that you see in B,F,J,N,R,V,Z 3:20 and the "Total" in Row 21 which is a sum of the induvidual "Price" Columns.

    What i would like the formula to do, is Report in Main!H2 how many instances of the tool type selected in Main!G2 appear in the sheet for the user shown in Main!F2 between the dates specified in Main!C2 and D2.
    Hopefully that makes some small amount of sense!
    If any clever sorts out there are able and willing to advise me further, it would be very much appriciated.
    Havent played with Excel in anger for many years, I'm picking it up again, slowly but surely.

    Thanks!
    Tony.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,796

    Re: Report number of instances in another sheet based on variable conditions

    Welcome to the forum.

    Please specify your Excel product in your forum profile - is it 365?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-09-2024
    Location
    Kent, England
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2410 Build 16.0.18129.20158) 64-bit
    Posts
    3

    Re: Report number of instances in another sheet based on variable conditions

    Apologies, I thought I entered it on signup, I believe it is still classed as 365 as I have it through my office 365 subscription, though it is not the web version, I have the software downloaded, Version 2410
    I have put together a sample workbook, all names removed however the data is true of what I am working with.
    Attached Files Attached Files
    Last edited by wilson96; 12-10-2024 at 09:08 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,796

    Re: Report number of instances in another sheet based on variable conditions

    Please ADD 365 to your profile (it should read Excel 365 v. 2410. Thanks.

    I'll have a look at the sample workbook presently.

  5. #5
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,976

    Re: Report number of instances in another sheet based on variable conditions

    Your sheet name is inconsistent. e.g. "user 1" and "user1" is different.

    I use substitute to handle this situation.

    H2
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-09-2024
    Location
    Kent, England
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2410 Build 16.0.18129.20158) 64-bit
    Posts
    3

    Re: Report number of instances in another sheet based on variable conditions

    Thanks for the reply, I am aware that the List name reads "User 1" and the sheet name is "User1" this is by design, when setting up the hyperlink, i set the destination as "User1!" and set the Cell to display "User 1" I just felt this made things easier to work in my live sheet where "User 1" is replaced with a name.

+ 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. Count number of instances from once sheet and add total in another cell on other sheet
    By Interst3llar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2018, 04:21 AM
  2. email report based on conditions
    By cascencio83 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2015, 12:36 AM
  3. Extract the data to another sheet based on variable conditions
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-25-2014, 06:10 PM
  4. Create a report based on date conditions
    By pnabuco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-16-2013, 05:46 PM
  5. [SOLVED] Add row borders based on number of instances
    By Pierce Quality in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-03-2013, 07:24 AM
  6. How to number instances of a variable?
    By RaydenEG in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-12-2009, 12:20 PM
  7. Counting Number of Instances with Conditions
    By excalibur69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-02-2008, 02:44 PM

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