+ Reply to Thread
Results 1 to 6 of 6

Match two columns and count the third column's value

  1. #1
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Match two columns and count the third column's value

    HI,
    in sheet 1 there are 3 main columns B,C,D. column b is purchase order number and column c is product description and column D is quantity.

    in the second sheet in cell M3, i want the unique number of product used from sheet 1. in cell L3 i have counted that but this is the result from second sheet. while i want to cross check the results. that's why i want the how many type of product used in any particular p.o.

    for example:- in sheet 1, if we select the p.o. no. 3840 B it shows the result in c column which is total 17 if we count them, but i don't have to count them again and again. i want to know only how many type of product were used that is 3. so i want the result in m3=3 . p.o. no. should be follow by cell h3. as p.o. no. changed in h3 result should be according to that. and h3 controls by B1.

    ins short, in second sheet as we enter any p.o. number in B1. it shows automatically in h3 and i want how many type of product were used in h3.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-22-2017
    Location
    INDIA
    MS-Off Ver
    EXCEL 2007
    Posts
    106

    Re: Match two columns and count the third column's value

    apply this formula in M3

    =COUNTIFS(Sheet1!$B$2:$B$1916,'TRACK YARN P.O. WISE'!H3,Sheet1!$C$2:$C$1916,'TRACK YARN P.O. WISE'!I3)

    -----------------
    If solved press * add reputation

  3. #3
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: Match two columns and count the third column's value

    first of all thanks for replying. this formula is counting a single product used how many times which i don't ask for. i want only how many products were used in p.o. number 3840 B. and the correct answer is 3. while this formula is showing how many times a single product 2/5 cotton was used.

  4. #4
    Forum Contributor
    Join Date
    12-22-2017
    Location
    INDIA
    MS-Off Ver
    EXCEL 2007
    Posts
    106

    Re: Match two columns and count the third column's value

    use this formula, result will be 3

    =SUMPRODUCT(((Sheet1!$B$2:$B$1925='TRACK YARN P.O. WISE'!H3))/COUNTIFS(Sheet1!$B$2:$B$1925,Sheet1!$B$2:$B$1925&"",Sheet1!$C$2:$C$1925,Sheet1!$C$2:$C$1925&""))

    -----------------
    If solved press * add reputation

  5. #5
    Forum Contributor
    Join Date
    08-07-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    233

    Re: Match two columns and count the third column's value

    yeah absolutely done. thanks a lot from the bottom of my heart. you are very responsive and intelligent also. i always mess with where the brackets will start where to put comma, semi colon, double quotes. these types of things always bother me. is there any course of language or book. i would like to have some suggestion. and again thanks a lot for the formula.

  6. #6
    Forum Contributor
    Join Date
    12-22-2017
    Location
    INDIA
    MS-Off Ver
    EXCEL 2007
    Posts
    106

    Re: Match two columns and count the third column's value

    You are Welcome. Have a nice day
    If solved press * add reputation

+ 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 Unique Values with Partial Match one column exact match another column
    By carsto in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-30-2019, 09:56 AM
  2. [SOLVED] Count if/ Count/ IF two columns if adjacent column = value, countif on other column
    By catscats11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2017, 10:34 AM
  3. Replies: 4
    Last Post: 04-14-2017, 07:47 PM
  4. Match columns A & C and partial Match B & D and get column E data
    By Excelbanksters in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-26-2016, 04:05 PM
  5. [SOLVED] Count number of unique values in Column A that match a term in Column B
    By frsaxon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2016, 07:22 AM
  6. Replies: 20
    Last Post: 04-15-2013, 01:06 PM
  7. Replies: 6
    Last Post: 12-10-2012, 06:26 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