+ Reply to Thread
Results 1 to 15 of 15

Results based on matching fields

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    oslo
    MS-Off Ver
    2010
    Posts
    5

    Results based on matching fields

    Hi
    I wonder if someone can help me with the following.
    I want to give result based on criterias.

    if A1 = C1 and B1 = d1, then 3, else 0


    its quite simple, but i cant make it work.

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Results based on matching fields

    =if(and(a1=c1,b1=d1),3,0)

    Try this

    Punnam

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Results based on matching fields

    Hi,

    Welcome to the Forum

    Use,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Registered User
    Join Date
    07-16-2014
    Location
    oslo
    MS-Off Ver
    2010
    Posts
    5

    Re: Results based on matching fields

    hi.
    doesnt work :-(
    I have tried this earlier but no good result.
    Error says error with formula

    i have format the cells as numbers

  5. #5
    Registered User
    Join Date
    07-16-2014
    Location
    oslo
    MS-Off Ver
    2010
    Posts
    5

    Re: Results based on matching fields

    this works fine
    =IF(A1=B1;3;0)

    but thats only one criteria.

    I use excel 2010

  6. #6
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Results based on matching fields

    Can u upload a workbook with sample data (after removing sensitive data)?

  7. #7
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Results based on matching fields

    Hi,

    better provide sample workbook with no confidential data .

    Punnam

  8. #8
    Registered User
    Join Date
    07-16-2014
    Location
    oslo
    MS-Off Ver
    2010
    Posts
    5

    Re: Results based on matching fields

    here is the workbook.
    What im trying to do is to set points based on correct result in e.g J3, baed on results in f3=h3 and g3 = i3. if match, then set 3 points
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-16-2011
    Location
    India
    MS-Off Ver
    Excel 365
    Posts
    10

    Re: Results based on matching fields

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

  10. #10
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Results based on matching fields

    Hi,
    One question what if column F & G or H or I has no value what has to be happen ?.
    If it should display Null or Empty use the below formula
    Formula in J3 =IF((F3:I3)>0,IF(AND(F3=H3,G3=I3),3,0)," ") activate this using Ctr+Shift+Enter

    Punnam

  11. #11
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Results based on matching fields

    Hi Herman,

    In J3 use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down

  12. #12
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Results based on matching fields

    Quote Originally Posted by Punnam View Post
    Formula in J3 =IF((F3:I3)>0,IF(AND(F3=H3,G3=I3),3,0)," ") activate this using Ctr+Shift+Enter
    Punnam's formula doesn't work...

  13. #13
    Registered User
    Join Date
    07-16-2014
    Location
    oslo
    MS-Off Ver
    2010
    Posts
    5

    Re: Results based on matching fields

    ahh, thanks. so the semicolon fixed the problem :-)

    Thanks for grat help

  14. #14
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Results based on matching fields

    Quote Originally Posted by Saarang84 View Post


    Punnam's formula doesn't work...
    It is working fine in my sheet can u explain me y it is happening ?

    Punnam

  15. #15
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Results based on matching fields

    @ Saarang84,

    Thanks for correcting me.

    Punnam

+ 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. Replies: 3
    Last Post: 06-13-2013, 12:21 PM
  2. Returning ALL matching results based upon a text-based LOOKUP VALUE
    By colunga81 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2013, 09:23 AM
  3. Trying to narrow down results based on certain fields
    By jdgwebdev in forum Access Tables & Databases
    Replies: 1
    Last Post: 02-22-2013, 08:38 AM
  4. Calculated Fields Based on Running Total Fields?
    By Kruncher in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2006, 01:25 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