+ Reply to Thread
Results 1 to 10 of 10

COUNTIF problem... I think

Hybrid View

  1. #1
    Registered User
    Join Date
    03-07-2016
    Location
    isle of wight
    MS-Off Ver
    excel 15
    Posts
    7

    COUNTIF problem... I think

    Screen Shot 2016-03-09 at 00.46.04.png

    I need to find a formula that will give me a total in D2.

    The range that I will be using will be in B in the below picture.

    Screen Shot 2016-03-09 at 00.43.15.png

    Upon the sheet in the first pic, I will select the product I wish to find a total for down column A.

    Therefore I need to find a way to only add up the numbers in column B (2nd pic) to match the same product in from C (2nd pic).

    All help really appreciated!

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: COUNTIF problem... I think

    put the following formula in cell D2:
    =SUMIF(Sheet2!$B$2:$B$18,Sheet1!$A2,Sheet2!$A$2:$A$18)
    You'll have to change Sheet2!$B$2:$B$18 by your actual product range
    You'll also have to change Sheet2!$A$2:$A$18 by your actual units ordered range.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    03-07-2016
    Location
    isle of wight
    MS-Off Ver
    excel 15
    Posts
    7

    Re: COUNTIF problem... I think

    Thanks for the reply, but I don't quite follow..

    Basically I want an overview sheet (Stock Report) that will let me select products and tell me the number from Order sheet.. What steps to I take?

    D2 in Stock Report then put in =sumif then select which part in the order sheet?

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: COUNTIF problem... I think

    You put the Sumif formula in D2. You then copy this formula down the column in your Stock report sheet.
    Make sure you have in column A, the list of products you want to check.
    The formula will give you the number of products ordered from you Order sheet.
    That is why I told you to change both Sheet2 section to suit your actual sheet name.

    CODE]=SUMIF(Sheet2!$B$2:$B$18,Sheet1!$A2,Sheet2!$A$2:$A$18)[/CODE]

  5. #5
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Re: COUNTIF problem... I think

    probably it is just your sheet names.

    rename your units ordered sheet to "sheet2" then put the formula in.

    =SUMIF(Sheet2!$B$2:$B$18,$A2,Sheet2!$A$2:$A$18)
    hmm OK looks like P24 beat me to it, but I'd also note the sheet1 probably needs changing or removing too.

  6. #6
    Registered User
    Join Date
    03-07-2016
    Location
    isle of wight
    MS-Off Ver
    excel 15
    Posts
    7

    Re: COUNTIF problem... I think

    Does it matter if the product I will be selecting will be from a drop down menu? This really has to be key for what I need and want.

    My first sheet will be a 'base sheet' - I've listed all my products and all information that I need in that.

    Every other product input in my other sheets - monthly orders, monthly sales, monthly stock reports - is comprised from drop down lists that are referenced from whatever goes into the 'base' sheet. All information that's derived through manual input i.e sales or orders is derived from VLOOKUP forumlas..

    So when I want a monthly stock report, I select Product X from a list, and a formula in relevant cells (Sales and Purchases) adds up all the figures in orders and sales that are relevant to the product I choose to select.

    There is never going to be a set determined product that I will be asking figures for.

    From what I can see it's something like a VLOOKUP and SUMIF function needed, but I haven't the excel knowledge to begin to get to what I need beyond explaining best as to what I need.

    Sorry for being such a newb. I can pick things up quite easily, and then understand them, but probably skipping various levels of needed excel understanding at this point.

    Again, many thanks..

  7. #7
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: COUNTIF problem... I think

    It would be a lot easier if you could attach a sample workbook with your actual set up.

    And no, the value you are searching coming from a drop down menu has no effect on the formula.

  8. #8
    Registered User
    Join Date
    03-07-2016
    Location
    isle of wight
    MS-Off Ver
    excel 15
    Posts
    7

    Re: COUNTIF problem... I think

    Here is a simple sample workbook..

    https://mega.nz/#!V8xRyLrJ!Xa63seV_J...vTQ67bJ6VbS41M

    Thanks
    Last edited by t.richards; 03-09-2016 at 06:10 PM.

  9. #9
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: COUNTIF problem... I think

    See the formulas in your Stock report sheet.
    I was not sure in which column to put the sales formula (in Sold or in Sales).
    Attached Files Attached Files

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: COUNTIF problem... I think

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Countif problem
    By Nickmsi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2015, 11:41 AM
  2. [SOLVED] COUNTIF Problem
    By CM03486 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2013, 08:44 AM
  3. COUNTIF Problem
    By Environment in forum Excel General
    Replies: 2
    Last Post: 09-28-2011, 09:30 AM
  4. Countif Problem
    By penfold in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2008, 10:05 AM
  5. [SOLVED] Countif problem
    By David Cleland in forum Excel General
    Replies: 4
    Last Post: 08-23-2005, 07:05 PM
  6. COUNTIF Problem
    By Eaglered in forum Excel General
    Replies: 1
    Last Post: 05-23-2005, 02:06 PM
  7. countif problem
    By WYN in forum Excel General
    Replies: 4
    Last Post: 04-25-2005, 12:06 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