+ Reply to Thread
Results 1 to 10 of 10

Do a SUM if there's a Mismatch

  1. #1
    Registered User
    Join Date
    02-09-2014
    Location
    Lagos, Nigeria
    MS-Off Ver
    Excel 2010
    Posts
    5

    Exclamation Do a SUM if there's a Mismatch

    Firstly kudos to guys in this forum as I have picked tips off this page for use before registering.

    However, please I need help with this file I will upload along with this and basically what I need is a formula to know/keep record of reoccurence across rows to which a sum, count or whatever can be applied the returned values.

    Thanks, would sincerely appreciate your comments

    brickWall.xlsx
    Last edited by inn; 02-09-2014 at 05:06 PM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Reoccurence in exact location...

    Hello Inn!

    Please find attached !


    If this helps click " * " add reputation icon in the bottom left corner of my post!
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    02-09-2014
    Location
    Lagos, Nigeria
    MS-Off Ver
    Excel 2010
    Posts
    5

    Thumbs up Re: Reoccurence in exact location...

    Quote Originally Posted by hemesh View Post
    Hello Inn!

    Please find attached !


    If this helps click " * " add reputation icon in the bottom left corner of my post!
    Thanks hemesh, gone through the file but what I intend doing is get the sum of the actual cell values where there is a mismatch depending on the which total count is greater;

    Thanks

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Reoccurence in exact location...

    If i am getting you right then this should help !

    first formula find the row number and column number where there is a mismatch.
    second formula then count the values in A and B column if count of B is greater then count of A it shows sum else 0
    Attached Files Attached Files

  5. #5
    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
    52,933

    Re: Reoccurence in exact location...

    inn, welcome to the forum

    1st, Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. 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)

    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.

    2nd Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.
    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

  6. #6
    Registered User
    Join Date
    02-09-2014
    Location
    Lagos, Nigeria
    MS-Off Ver
    Excel 2010
    Posts
    5

    Lightbulb Re: Do a SUM if there's a Mismatch

    Hi Hemesh,

    Really appreciate your efforts kindly look at the response in the attached file

    Thanks

    brickWall.xlsx

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Do a SUM if there's a Mismatch

    Hello Try this in D1 copy paste below : =
    =SUM(--(IF(NOT(ISNUMBER(_1tab)),$B$2:$B$213,0)))
    then hold control and shift together and then hit enter now release all three keys to make it array formula.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-09-2014
    Location
    Lagos, Nigeria
    MS-Off Ver
    Excel 2010
    Posts
    5

    Thumbs up Re: Do a SUM if there's a Mismatch

    Good Good Good, hemesh.

    I just tweaked it like this:
    =IF(COUNT(_1tab)<COUNT(_5stk),SUM(--(IF(NOT(ISNUMBER(_1tab)),$B$2:$B$213,0))),0)

    And it works perfect, thanks दोस्त
    Last edited by inn; 02-09-2014 at 10:49 PM. Reason: [SOLVED]

  9. #9
    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
    52,933

    Re: Do a SUM if there's a Mismatch

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  10. #10
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Do a SUM if there's a Mismatch

    thanks for the feedback!

+ 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. Formula to work out an exact average over an exact number
    By Sandyshirl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-11-2013, 01:35 AM
  2. VBscript to copy paste chart in exact location in other sheet
    By Gurushankar in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-13-2011, 01:45 PM
  3. Replies: 4
    Last Post: 11-12-2010, 01:01 AM
  4. Replies: 4
    Last Post: 05-02-2006, 11:00 AM
  5. Excel VBA Challenge: Creating a callout with exact location
    By naddad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2006, 07:44 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