+ Reply to Thread
Results 1 to 5 of 5

Count if, locating cell location.

  1. #1
    Registered User
    Join Date
    12-21-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    28

    Count if, locating cell location.

    Hello

    I have had may problems solved by some fantastic users here on Excel forum and I have another thing I am a bit stuck on.

    What I wish to do is the following.

    I have a column full of data like the below with relevant data on the same row.

    I wish to locate the cells which have a specific section most importantly without the "cartridge only" so for example with the below

    Word Academy (Nintendo DS)
    Word Academy (Nintendo DS) (Cartridge Only)

    This would show 2 given there are two with the specific text "Word Academy (Nintendo DS)" there will always be a cell without the (Cartridge Only) part so for this the formula =COUNTIF(D:D,"*" & D1 & "*") seems to do the job to simply count the cells with that in however I do not wish to do this.

    What I need to do is locate the cells that have this in but match them together in a large sheet so basically I somehow need to be able to locate the two corresponding cells which both have one of the cells values of "Word Academy (Nintendo DS)"

    the cells have data in the row which I need to tie together to create a total value.

    For example

    Title Qty
    Word Academy (Nintendo DS) 5
    Word Academy (Nintendo DS) (Cartridge Only) 6

    I need to locate the all the cells with "Word Academy (Nintendo DS)" in which would mean just the two cells "Word Academy (Nintendo DS)" + "Word Academy (Nintendo DS) (Cartridge Only)" in the above instance but I need it to then see the cell which has that in its title and add the quantity of the two together leaving me with the below

    Title Qty Actual Qty
    Word Academy (Nintendo DS) 5 11
    Word Academy (Nintendo DS) (Cartridge Only) 6 11

    Which is basically just adding together the quantity shown on the spreadsheet in the rows with the containing text "Word Academy (Nintendo DS)" and as "Word Academy (Nintendo DS) (Cartridge Only)"

    On the attached spreadsheet Column L is an example of the result I would be desire, I have put a basic =sum formula in to just represent the value it should be showing.

    Any questions please let us know and I will get right back

    Thanks in advance for any help offered!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count if, locating cell location.

    Hi,

    With a helper column M

    M2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    L2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    both copied down.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-30-2014
    Location
    Suzhou,China
    MS-Off Ver
    Excel 2003
    Posts
    41
    hi sam,
    try this in L2 then fill down
    =SUMIF($D$2:$D$11,"*"&SUBSTITUTE(D2," (Cartridge Only)","")&"*",$E$2:$E$11)
    Last edited by wcymiss; 04-02-2014 at 07:22 PM.
    Welcome to China,Welcome to Suzhou...And,我是来学英文的。

  4. #4
    Registered User
    Join Date
    12-21-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    28

    Re: Count if, locating cell location.

    To Both above, Perfect solutions

    Thank you very much indeed.

    As per usual my query has been expertly fixed by 2 people astronomically better at excel than my self

    Thank you!!

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Count if, locating cell location.

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  2. Store current cell location to use same location on other worksheet
    By jmvdholst in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 09:58 AM
  3. Locating active cell
    By shirl94611 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2007, 03:55 PM
  4. Locating a cell reference (not a value)
    By dugong in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-03-2007, 04:41 AM
  5. Locating Last Nonzero Cell in a Row
    By wilby31 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2005, 04:05 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