+ Reply to Thread
Results 1 to 4 of 4

Looking for a correspondence in VBA

  1. #1
    Registered User
    Join Date
    08-08-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    30

    Looking for a correspondence in VBA

    Hi Guys,

    I need to look for a correspondence between a value formed by two or more column, and in case I found a result I need to copy the result from the adjacent cell to the destination cell, which in my case is the cell where excel was originally.

    I was wondering which is the best way to do this.

    Can you provide me an example too?

    Thanks
    Andrea

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Looking for a correspondence in VBA

    Can you provide me an example too?

    It would actually be better if you posted an example of the data/columns you want to work with and a number of scenarios and outcomes.

    To be honest, as it stands, I'm not sure I understand the question.


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-08-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Looking for a correspondence in VBA

    Hey TMShucks,

    thanks for the answer, but it looks I can't really upload any files here yet. Perhaps I still need some permission is going to be applied after a certain number of posts.

    I'll try to make it simpel here.

    Col A Col B Col C
    abc def 10
    hhh ffff 20
    abc def ??


    Ok, now assume I im 3C, and I run my query ... what I what is to find the previous correspondance of abc def which are distributed on two separate columns. If a correspondance exists, what I what is copy the value from 1C in this case into 3C from which my macro has been called.

    Simple as that.

    Does it make sense?

    Thanks
    Andrea

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Looking for a correspondence in VBA

    hi, Andrea, will that be of any help?
    Attached Files Attached Files
    Last edited by watersev; 08-14-2011 at 08:03 AM.

+ 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