+ Reply to Thread
Results 1 to 5 of 5

Finding matching data L7

  1. #1
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Finding matching data L7

    I have a macro finddata but currently its not working correctly. If a row Column A match L7 then the corresponding column B data must be written(Copied) in in Column O. L7 will change daily.In the example 2.3 is highligted in column A every occurance of 2.3 the number next to it orange must be copied to column O2

    The results I wanted is in Column Q but the macro finddata is not correct -any rep given for a solution to make it work correctly -something wrong as it use a loop to find the data

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Re: Finding matching data L7

    Anyone had a look at the code
    Please Login or Register  to view this content.
    Currently the results in Column O is not correct it must be the data in Column Q if it works

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Finding matching data L7

    How about
    Please Login or Register  to view this content.
    You had declared decimalvalue as long (ie a whole number) which will convert 2.3 to 2 & that is what your code then looked for.
    Also whilst you were looking for 2.3, most of your values were 2.333333 which is not the same.

  4. #4
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Re: Finding matching data L7

    Quote Originally Posted by Fluff13 View Post
    How about
    Please Login or Register  to view this content.
    You had declared decimalvalue as long (ie a whole number) which will convert 2.3 to 2 & that is what your code then looked for.
    Also whilst you were looking for 2.3, most of your values were 2.333333 which is not the same.
    Ahhhhhh knew it was something I overlooked -thanks Fluff13 -it works now -++++ Rep thanks for your time and help

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Finding matching data L7

    Glad to help & 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. [SOLVED] Formula - Finding matching data from different worksheets, returning data from 3rd colum
    By Rach1509 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2017, 11:33 AM
  2. Finding Matching Data in one Column/Adding corresponding matching string value.
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2013, 07:23 PM
  3. matching and finding data between two spreadsheets
    By Megatron in forum Excel General
    Replies: 5
    Last Post: 07-23-2012, 02:49 PM
  4. Replies: 2
    Last Post: 08-06-2009, 06:04 PM
  5. finding or matching data
    By langdon37 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-09-2008, 02:25 PM
  6. Finding matching data
    By solnajeff in forum Excel General
    Replies: 5
    Last Post: 11-30-2007, 11:58 PM
  7. Finding matching cell data
    By SRL in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2006, 10:50 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