+ Reply to Thread
Results 1 to 11 of 11

Formula Needed to count data in a column based on certain data entered into another

  1. #1
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Formula Needed to count data in a column based on certain data entered into another

    WS Attached

    On ‘SALES’ sheet E2 & E3 is where the formula needed to go.

    Basically, when the letter “A” is selected on ‘SALES’ H6:H505, the letter “B” will be counted in F6:F505 and entered into E2

    Same formula for E3 except it will count the letter “S” in F6:F505 based on the letter “A” entered in H6:H505

    thanks
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula Needed to count data in a column based on certain data entered into another

    Something like this?
    array entered E2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If yes do the same for E3
    Last edited by sandy666; 03-08-2017 at 09:57 PM.

  3. #3
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Re: Formula Needed to count data in a column based on certain data entered into another

    I entered it into E2 and it doesnt work. Says #VALUE!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula Needed to count data in a column based on certain data entered into another

    Array Entered means hold down Control+Shift and Hit ENTER

    so now select E2, next click on formula in formula bar and use Control+Shift+Enter
    Attached Files Attached Files
    Last edited by sandy666; 03-08-2017 at 11:32 PM.

  5. #5
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Re: Formula Needed to count data in a column based on certain data entered into another

    ok, i did the array, however it is not counting the "B" & "S" based on the letter "A" in H6:H505
    instead its just counting all the B's in E2 and all the S's in E3

    I need it to only count those if the letter "A" is entered

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula Needed to count data in a column based on certain data entered into another

    Quote Originally Posted by excelteam777 View Post
    when the letter “A” is selected on ‘SALES’ H6:H505, the letter “B” will be counted in F6:F505 and entered into E2

    Same formula for E3 except it will count the letter “S” in F6:F505 based on the letter “A” entered in H6:H505

    thanks
    Be more descriptive with your description

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula Needed to count data in a column based on certain data entered into another

    Try E2: =SUMPRODUCT(($H$6:$H$505="A")*($F$6:$F$505="B")) normal entered
    Attached Files Attached Files
    Last edited by sandy666; 03-08-2017 at 11:52 PM.

  8. #8
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Re: Formula Needed to count data in a column based on certain data entered into another

    ok, in cell E2 of SALES is the formula needed. I need the letter "B" counted in 'SALES' H6:H505 when the letter "A" is entered into F6:F505

    i also need a formula in E3 to count the letter "S" in 'SALES' H6:H505 when the letter "A" is entered into F6:F505

    I thought thats what I wrote originally, sorry for any confusion

  9. #9
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Re: Formula Needed to count data in a column based on certain data entered into another

    working fine, thank you so much

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula Needed to count data in a column based on certain data entered into another

    See post #7 and attachment

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula Needed to count data in a column based on certain data entered into another

    Thanks for rep and marked thread as solved

+ 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] Formula Needed to count sales on one sheet based on data in multiple cells on another
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2017, 11:24 PM
  2. VBA help needed to add formula based on Column A rows data
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-03-2014, 05:45 PM
  3. [SOLVED] Formula Needed to copy data from a cell based on data entered into another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 03:16 AM
  4. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  5. Replies: 3
    Last Post: 05-17-2013, 10:04 AM
  6. Auto Populate Two Columns Based On Data Entered Into Another Column
    By aleenah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2013, 08:37 PM
  7. Replies: 5
    Last Post: 06-03-2011, 03:52 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