+ Reply to Thread
Results 1 to 12 of 12

formula not return correct resuilt

  1. #1
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    formula not return correct resuilt

    =IF(AND('tube base'!A2:A60000,'participants names'!a1,IF(AND('tube base'!G2:g60000,'Participants names'!B4,'tube base'!H2

    the above formula (If i have the formula right should return the data found in H2),

    what im trying to do is to get the data in "tube base h2" from the criteria in tube base and participants match when they do it returns the result found.. i will be dragging the result down

    or have i the wrong formula altogether

    TIA
    Last edited by Patcheen; 04-25-2018 at 11:19 AM. Reason: used wrong wording

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: wrong result

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: wrong result

    It sounds like you have the wrong formula, maybe an index/match/match or a vlookup.
    You ought to also consider changing the post title as wrong result isn't helpful for someone with a similar problem searching the forum.
    As John noted, a sample sheet would be helpful.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: Unsure of Formula

    heres an example hope it helps -
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Unsure of Formula

    @Patcheen

    don’t want lookup formulas
    so how do you expect to find a match????

  6. #6
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: formula not return correct resuilt

    hopefully with match and index..... is that possible?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: formula not return correct resuilt

    Try

    in H3

    =IFERROR(INDEX('Participants name'!$H$2:$H$11,SMALL(IF(('Participants name'!$A$2:$A$11='Tube base'!$A$1)*('Participants name'!$B$2:$B$11='Tube base'!$B3),ROW('Participants name'!$H$2:$H$11)-ROW($H$2)+1),1)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Then copy down

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: formula not return correct resuilt

    Change the entry in B4 of the Tube base sheet to 20/05/2018, then you can put this formula in H3:

    =SUMPRODUCT(($A$1='Participants name'!$A$2:$A$11)*(B3='Participants name'!$B$2:$B$11),'Participants name'!$H$2:$H$11)

    Then copy down.

    You could also use a SUMIFS formula:

    =SUMIFS('Participants name'!$H$2:$H$11,'Participants name'!$A$2:$A$11,$A$1,'Participants name'!$B$2:$B$11,B3)

    Hope this helps.

    Pete

  9. #9
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: formula not return correct resuilt

    nope is it poss one of you can do the example one till i download and check it plz thank you

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,662

    Re: formula not return correct resuilt

    What is wrong with the formulae provided by Pete? All you need to do is copy and paste them in.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: formula not return correct resuilt

    it returns a blank

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: formula not return correct resuilt

    I've put the formulae in columns I and J for comparison - choose which one you prefer.

    Hope this helps.

    Pete

    P.S. You had your calculation options set to Manual
    Attached Files Attached Files

+ 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] Wrong result if I SUM
    By john55 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2017, 06:43 AM
  2. [SOLVED] Code result wrong but formula correct result
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2014, 12:26 PM
  3. IF/Then Getting Wrong Result
    By artiststevens in forum Excel General
    Replies: 2
    Last Post: 01-06-2011, 07:21 PM
  4. excel result return wrong calcuation result
    By garyww in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2006, 06:20 AM
  5. Whatever I do I get the wrong result
    By Arishy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-20-2005, 01:40 PM
  6. [SOLVED] Result in Cell is Wrong
    By bj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] Result in Cell is Wrong
    By Lilbit in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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