+ Reply to Thread
Results 1 to 9 of 9

Modify Formula

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    40

    Modify Formula

    I have this formula in column AN which counts the occurrences of each value in the long last of values in column AL.

    =COUNTIF($AL:$AL,AL3230)

    How do I modify that formula so that the count only includes those values where column R's value in the same row is "AM" (without the quotes)?

    The result from the formula for the following situation should be 2.

    Row R AL
    1000 AM 23
    1001 PM 23
    1002 AM 23

  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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Modify Formula

    Try this:

    =COUNTIFS($R:$R,"AM",$AL:$AL,AL3230)
    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
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    40

    Re: Modify Formula

    Thanks but that resulted in zero. I believe that's because I neglected to mention that the formula occurs in both AM and PM rows. and row 3230 is a PM row.

  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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Modify Formula

    No more guesswork.

    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. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    40

    Re: Modify Formula

    Thanks for the effort but I can use VBA.

  6. #6
    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. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Modify Formula

    Why woud you do that? Why can't you provide a workbook? Why should we have to guess when you could very easily do so?

  7. #7
    Registered User
    Join Date
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    40

    Re: Modify Formula

    Okay here it is. The formulas are actually in column AM. I said they were in AN to avoid confusion.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-15-2012
    Location
    San Jose, CA
    MS-Off Ver
    Office 2019 (in a VM on my mac)
    Posts
    40

    Re: Modify Formula

    Nevermind, I'm just getting supid in my old age.

  9. #9
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Modify Formula

    Is this what you mean?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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. How to modify this formula?
    By kingston_123 in forum Excel General
    Replies: 3
    Last Post: 06-29-2020, 03:54 PM
  2. Excel 2003 formula - modify one cell, another cell track the modify date
    By baby0596cw in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-06-2014, 12:55 PM
  3. Modify IF Formula
    By oskar270 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 05-16-2013, 04:55 PM
  4. [SOLVED] How to modify the sum formula SUM(A5:E5)/5
    By nur2544 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-20-2012, 02:20 PM
  5. using IF to modify a formula
    By Martindelica in forum Excel General
    Replies: 3
    Last Post: 02-24-2008, 04:51 PM
  6. [SOLVED] Modify A formula
    By carl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2006, 01:50 PM
  7. modify formula
    By ParTeeGolfer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2005, 07:06 PM

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