+ Reply to Thread
Results 1 to 16 of 16

Adapting an existing project to be more accurate

  1. #1
    Registered User
    Join Date
    01-03-2020
    Location
    Newcastle, UK
    MS-Off Ver
    O365
    Posts
    8

    Question Adapting an existing project to be more accurate

    Greetings everyone,

    I'm looking for some advice on a project I've been working on for some time. I should mention that the bulk of the work has been done without any 'major' VB knowledge, and has relied heavily on online resources!

    The project itself is a fairly simple sales lead and sales conversion tracker that my team of 15 people use to track when they've sold, what they've sold and the date of conversion.

    Currently, I'm using a simple =COUNTA(A2:A100) to count the non-blank cells and this total becomes the total number of leads logged during the month. The issue I'm having is that column A simply records the customers account number, so basically the formula looks for the account number column not being blank, and then counts it as a lead if it's not blank.
    This is starting to cause an issue when we roll over between months, as a lead may not convert in the same month it was logged. Therefore I need a method of using a date column (already in place, column C) and having the formula only count the lead as a lead if it falls into the current month.

    I do have a small VBA Userform that the users must use to "unhide" the next months sheet (we have lots of issues with people breaking sheets, so they're hidden). And there's also an annual summary sheet that copies over the metrics from each monthly sheet onto a one-pager with the agents annual sales stats. Each user has their own sheet, and each sheet is not connected/shared.

    Can anyone help me out with the formula I may need to use to have the sheet look at the date column instead? I'm terrible at IF statements


    Thank you so much in advance guys!
    Anth
    Attached Files Attached Files
    Last edited by ANTHR1CH; 01-03-2020 at 07:55 AM.

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

    Re: Adapting an existing project to be more accurate

    Welcome to the forum.

    There are instructions at the top of the page about how to attach a sample workbook.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Adapting an existing project to be more accurate

    Administrative note

    Welcome to the forum

    missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    And while you are at it, refresh your memory concerning our Forum Rules, which you probably missed / forgot.

    Thanks you for helping us help you

  4. #4
    Registered User
    Join Date
    01-03-2020
    Location
    Newcastle, UK
    MS-Off Ver
    O365
    Posts
    8

    Re: Adapting an existing project to be more accurate

    I didn't miss the rules? Care to elaborate on how I've broken them please?

  5. #5
    Registered User
    Join Date
    01-03-2020
    Location
    Newcastle, UK
    MS-Off Ver
    O365
    Posts
    8

    Re: Adapting an existing project to be more accurate

    Quote Originally Posted by AliGW View Post
    Welcome to the forum.

    There are instructions at the top of the page about how to attach a sample workbook.
    That's done, thanks for your help!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Adapting an existing project to be more accurate

    Is it column D you wish to automate? If so, explain your logic, please. If not, where are we meant to be looking?

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    A/C
    Type
    Date
    Converted?
    2
    1
    Payroll
    02/01/2020
    Yes
    3
    2
    Accounts
    02/01/2020
    Yes
    4
    3
    Test
    31/12/2019
    Yes
    5
    4
    Test
    01/02/2020
    No
    6
    5
    Test
    02/02/2020
    Yes
    Sheet: January 2020

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Adapting an existing project to be more accurate

    Quote Originally Posted by ANTHR1CH View Post
    I didn't miss the rules? Care to elaborate on how I've broken them please?
    You didn't break any rules.

    Please respond to my questions in post #6. Thanks.

  8. #8
    Registered User
    Join Date
    01-03-2020
    Location
    Newcastle, UK
    MS-Off Ver
    O365
    Posts
    8

    Re: Adapting an existing project to be more accurate

    Columns O and P from the Metrics side handles the totals from columns A - I

    I need the value in P3 to be populated based on the date entered in column C, for example: 01/01/2020 - 31/01/2020 entered, this will +1 to P3. Anything outside of the date range for the current month won't be counted and won't affect the value in P3. for example = 31/12/2019 +0 to P3.
    Last edited by ANTHR1CH; 01-03-2020 at 08:04 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Adapting an existing project to be more accurate

    Sorry, but this doesn't really answer my question. The formula in P3 is this:

    =COUNTIF(D2:D100,"Yes")

    However, the data does not seem to match what you are saying. Is the data in column D correct? Is it the column D data that you wish to generate to use in the formula, or do you not want to have column D there at all?

  10. #10
    Registered User
    Join Date
    01-03-2020
    Location
    Newcastle, UK
    MS-Off Ver
    O365
    Posts
    8

    Re: Adapting an existing project to be more accurate

    Formula in P2 is =COUNTIF(D2:D100,"Yes").
    Formula in P3 is =COUNTA(A2:A100).

    On my sheet anyway...

    Data in D is fine, my issue is with P3 "TOTAL LEADS" - I'm wanting to make this formula look at the DATE column (C) and +1 the count if the date range is within the current month. I'm not sure how else I can explain this now haha

    Attachment 656252

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Adapting an existing project to be more accurate

    OK - let me have another look.

  12. #12
    Registered User
    Join Date
    01-03-2020
    Location
    Newcastle, UK
    MS-Off Ver
    O365
    Posts
    8

    Re: Adapting an existing project to be more accurate

    Thank you!

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Adapting an existing project to be more accurate

    Try this:

    =COUNTIFS(A2:A100,"<>",C2:C100,">="&EOMONTH(TODAY(),-1)+1,C2:C100,"<="&EOMONTH(TODAY(),0))

  14. #14
    Registered User
    Join Date
    01-03-2020
    Location
    Newcastle, UK
    MS-Off Ver
    O365
    Posts
    8

    Re: Adapting an existing project to be more accurate

    OMG - You HERO. Thank you so much, that works perfectly! I'm very appreciative of your help
    Last edited by AliGW; 01-03-2020 at 08:27 AM. Reason: Please don't quote unnecessarily!

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,416

    Re: Adapting an existing project to be more accurate

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  16. #16
    Registered User
    Join Date
    01-03-2020
    Location
    Newcastle, UK
    MS-Off Ver
    O365
    Posts
    8

    Re: Adapting an existing project to be more accurate

    That's done! Thanks again!

+ 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] Adapting Existing Code to Offer Option to Save to Existing Folder
    By AliGW in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-28-2019, 07:37 AM
  2. Adapting this existing formula with less variables?
    By Weaselwithagun in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2019, 11:21 AM
  3. [SOLVED] Adapting Existing Formulas to Changing Months
    By vill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-07-2017, 08:36 AM
  4. [SOLVED] Name conflicts with existing module, project or project library.
    By L.LEE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2017, 04:10 AM
  5. Updating existing macro to reflect more accurate "total hours"
    By BlondOIverBlue in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-18-2010, 05:00 PM
  6. Help adapting an existing macro.
    By paul1970 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2008, 09: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