+ Reply to Thread
Results 1 to 18 of 18

error formula locating similar data

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    error formula locating similar data

    hello
    i got 4 columns and my formula in A is not working properly

    i intend to find similarities for cases where B = C and D=E
    then print Yes in A, only if both as above applies and not only one

    a good example is A8
    a wrong one is A17 which is not working since dates are similar and should print yes !!

    i apperciate checking my formula..Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: error formula locating similar data

    try with:
    =if(match(B2,D:D,0)=match(C2,E:E,0);"yes";"")
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: error formula locating similar data

    Quote Originally Posted by antoka05 View Post
    try with:

    Regards,
    Antonio
    Dear Antonio I am not able to make it work when i paste
    formula in A2 I get nothing

    thanks

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: error formula locating similar data

    In attached file I've inserted the formula but I I had to use another column, 'G'.

    Regards,
    Antonio
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-10-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: error formula locating similar data

    might be a better solution due to data type differences but this is without an additional column:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: error formula locating similar data

    If attached file can help, here I used one column formula.

    Regards,
    Antonio
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: error formula locating similar data

    Quote Originally Posted by antoka05 View Post
    If attached file can help, here I used one column formula.

    Regards,
    Antonio
    Dear Antonio
    I appreciate your help however i still can not get it to work
    example per attached i added 2 rows 18 and 19 but no results
    kindly would you suggest some more help
    thanks a lot
    Attached Files Attached Files
    Last edited by Mage; 04-28-2010 at 07:59 AM.

  8. #8
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: error formula locating similar data

    You are right, previous formula doesn't work fine.
    See attached file, I added this formula in cell 'A2' and then I copied it down:
    =IF(SUM(IF(B2&C2=D$2:D$19&E$2:E$19,1,0))>0,"yes","")
    but this is array formula and when you type in formula you need to press Ctrl+Shift+Enter and formula will appear with two braces on the sides.

    Regards,
    Antonio
    Attached Files Attached Files

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: error formula locating similar data

    You could also try a SUMPRODUCT version which wouldn't need to be "array entered", e.g. in A2 copied down

    =IF(SUMPRODUCT((B2=D$2:E$17)*(C2=E$2:E$17)),"yes","")

  10. #10
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: error formula locating similar data

    dear all this was really helpful
    however Antonio gave exactly what i wanted, you got my reputation
    thanks a lot you saved our office from tons of papers

  11. #11
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: error formula locating similar data

    hello again, dear all

    amendment is required to the formula

    =IF(SUM(IF(B2&C2=D$2:D$19&E$2:E$19,1,0))>0,"yes","")

    as per attached , instead of "yes" in A , i need to copy data from F into A when match happens as in A14 an example

    thanks again
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: error formula locating similar data

    any help on this one please ?
    thanks

  13. #13
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: error formula locating similar data

    I applied new formula in attached file but I had to use another column, for edxample'G' column... may be there is a better way to do it.

    Regards,
    Antonio
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: error formula locating similar data

    In attached file I used only one column for formula but in this case please put a blank two lines below the last cell in column F, i.e. if the last cell with data is F20 put a blank in cell F22.

    Regards,
    Antonio
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: error formula locating similar data

    Quote Originally Posted by antoka05 View Post
    In attached file I used only one column for formula but in this case please put a blank two lines below the last cell in column F, i.e. if the last cell with data is F20 put a blank in cell F22.

    Regards,
    Antonio
    works very well...
    much appreciate

  16. #16
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: error formula locating similar data

    Perhaps a more "standard" approach, which doesn't require and blank cells

    =IFERROR(INDEX(F$2:F$19,MATCH(B2&C2,D$2:D$19&E$2:E$19,0)),"")

  17. #17
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: error formula locating similar data

    thanks a lot

  18. #18
    Registered User
    Join Date
    04-27-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: error formula locating similar data

    dear Antonio and daddylonglegs

    formulas worked good and solved big part of the issue
    reffering to the the previously attached (test4) i had to use new data source in column d and the formula is not working any more, data is after doing text to column
    can you please take a look at attached and see if there is any difference between D and H formats (D is working but not H)!

    Thank you
    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)

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