+ Reply to Thread
Results 1 to 5 of 5

Counting the Number of Different Values in a Column

  1. #1
    Registered User
    Join Date
    04-07-2017
    Location
    Santa Rosa Beach, Florida
    MS-Off Ver
    2016
    Posts
    30

    Counting the Number of Different Values in a Column

    I have a spreadsheet that includes invoices listed individually. We write checks for multiple invoices at a time. The check number can be listed up to 50 times depending on the number of invoices it pays. I want to know how many checks are in the spreadsheet. In the example below, there are 16 invoices paid by 8 checks. I am looking for a formula that will give me the "8" answer. Thanks much!!!!

    PO# Vendor Invoice Check
    1223-1215 H 98260786 1
    1223-1216 H 98260785 1
    1223-1217 H 98260784 1
    1223-1218 A CH43026 2
    1223-1219 Ha 215355 3
    1223-1220 Ha 215356 4
    1223-1221 D 213592 5
    1223-1222 D 213594 5
    1223-1223 ABC 78383091 6
    1223-1224 ABC 78361552 6
    1223-1225 ABC 78358320 7
    1223-1226 ABC 78326017 7
    1223-1227 ABC 78308898 7
    1223-1228 ABC 78231701 7
    1223-1229 ABC 78091880 7
    1223-1230 P 319668 8
    Last edited by levpn; 07-15-2019 at 04:19 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Counting the Number of Different Values in a Column

    Use a Pivot Table.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Counting the Number of Different Values in a Column

    If you still want a formula here are two.

    With the understanding that the check numbers are all in column C either
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or array entered
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.



    A
    B
    C
    1
    PO#
    Vendor Invoice
    Check
    2
    1223-1215
    H 98260786
    1
    3
    1223-1216
    H 98260785
    1
    4
    1223-1217
    H 98260784
    1
    5
    1223-1218
    A CH43026
    2
    6
    1223-1219
    Ha 215355
    3
    7
    1223-1220
    Ha 215356
    4
    8
    1223-1221
    D 213592
    5
    9
    1223-1222
    D 213594
    5
    10
    1223-1223
    ABC 78383091
    6
    11
    1223-1224
    ABC 78361552
    6
    12
    1223-1225
    ABC 78358320
    7
    13
    1223-1226
    ABC 78326017
    7
    14
    1223-1227
    ABC 78308898
    7
    15
    1223-1228
    ABC 78231701
    7
    16
    1223-1229
    ABC 78091880
    7
    17
    1223-1230
    P 319668
    8
    Dave

  4. #4
    Registered User
    Join Date
    04-07-2017
    Location
    Santa Rosa Beach, Florida
    MS-Off Ver
    2016
    Posts
    30

    Re: Counting the Number of Different Values in a Column

    I am not familiar with the array. I copied and pasted the first formula and ended up with #DIV/0!

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Counting the Number of Different Values in a Column

    In the attached please find the two formulas in D2 and D3.

    Did you array enter the second formula? (Ctrl + Shift + Enter)

    If you are still having difficulty try uploading the actual workbook you have.

+ 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. counting number of values based on another column
    By mubashar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2014, 12:28 AM
  2. [SOLVED] Counting number of values in a column against a text/numeral in 2 other columns.
    By noor_ain in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-08-2014, 01:39 PM
  3. Counting number of values within a date range equal or great to a number
    By diablo_719 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-15-2013, 02:55 PM
  4. Counting the number of fields in a column for which there are duplicate values.
    By sangreal2007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2013, 03:59 AM
  5. [SOLVED] Counting unique values (text or number) in one column
    By djaurit in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-06-2012, 03:13 PM
  6. Replies: 3
    Last Post: 03-29-2011, 11:03 AM
  7. Counting the number values in a column which is dynamic
    By nynamyna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2011, 10:35 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