+ Reply to Thread
Results 1 to 5 of 5

Formula to count alternate columns given specific value

  1. #1
    Registered User
    Join Date
    12-19-2022
    Location
    Boston
    MS-Off Ver
    2016
    Posts
    4

    Question Formula to count alternate columns given specific value

    Example1.xlsx

    In the spreadsheet attached, I am try to get a percent and count of values given the detection code associated with it in the adjacent column. If there is a number with no code, it counts as detected. If there is a number with the letter U, it counts as U.

    I need to do this for all rows for the spreadsheet. This is a snapshot of a much larger dataset, so I'd like to automate it as much as possible.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Formula to count alternate columns given specific value

    R3 copied down:
    =SUMPRODUCT((ISNUMBER(C3:O3)*(ISBLANK(D3:P3))))

    T3 copied down:
    =SUMPRODUCT((ISNUMBER(C3:O3)*(ISTEXT(D3:P3))))

    I assume that you can calculate the %s from this...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Formula to count alternate columns given specific value

    Extra information needed! I have just seen J, J+ and R. You did not tell us what happens when these exist.

  4. #4
    Registered User
    Join Date
    12-19-2022
    Location
    Boston
    MS-Off Ver
    2016
    Posts
    4

    Re: Formula to count alternate columns given specific value

    How can I get a count of U, J, J+, and R separately?

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Formula to count alternate columns given specific value

    For U: =COUNTIFS(D3:P3,"U")
    For J: =COUNTIFS(D3:P3,"J")
    For J+: =COUNTIFS(D3:P3,"J+")
    For R: =COUNTIFS(D3:P3,"R")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] COUNT alternate columns
    By mikehk in forum Excel General
    Replies: 1
    Last Post: 07-23-2020, 11:21 PM
  2. Replies: 3
    Last Post: 03-04-2014, 01:47 PM
  3. Apply Vlookup formula Alternate Columns throughout Worksheet
    By ravisramani in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 08:37 AM
  4. [SOLVED] Do I use Count-IF or other formula to pull data from specific columns?
    By jordan1214 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2013, 09:14 PM
  5. [SOLVED] count alternate columns
    By rohit43 in forum Excel General
    Replies: 3
    Last Post: 11-20-2012, 07:24 AM
  6. Count, but only in columns with specific value
    By hcyouth in forum Excel General
    Replies: 11
    Last Post: 06-07-2012, 02:25 PM
  7. Copy Vlookup Formula to alternate columns
    By Brilar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-09-2011, 04:24 AM

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