Results 1 to 15 of 15

Return cell values for non-matching & matching criteria

Threaded View

  1. #1
    Registered User
    Join Date
    11-10-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    22

    Question Return cell values for non-matching & matching criteria

    Hey. I have a problem solving the following:

    I have 2 sheets with different values. In row 1 in sheet 1 I have the values
    AA AB & AC. Under these values i have other values. So under AA i have 2 and under AB i have 3 and under AC I have 4. In row 1 i sheet 2 i have values AA AB & AD. Under these values i also have values. So under AA i have 4, under AB i have 3 and under AD I have 2. I want to use vba to
    write the following to a new sheet in the same workbook (sheet 3). The values AA AB, AC & AD in sheet 3 in row 1. and their corresponding values. This means AA in row 1 column 1 and in row 2 column 1 the value will be 2. In row 3 column 1 the value should be 4. In total this would look like:

    Row 1: AA AB AC AD
    Row 2: 2__ 3__ 4__ 0__
    Row 3: 4__ 3__ 0__ 2__

    This also means when there is not an entry the code needs to insert a "0".


    How can i do this?
    Last edited by jenz_skallemose; 11-10-2012 at 03:15 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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