+ Reply to Thread
Results 1 to 2 of 2

Working with two ranges

  1. #1
    Registered User
    Join Date
    07-07-2008
    Location
    israel
    Posts
    6

    Working with two ranges

    Hi,

    I have this problem : I have two ranges, each one is a range of values. I'm looking for a command that checks if there's a same value in those two diffrenet ranges, and in case there is, then make some conditional sentence like "if - then". I mean if the value "1492" is in each of these ranges then sum it or copy it, etc.

    Thanks in advance,
    Udi

  2. #2
    Registered User
    Join Date
    07-18-2008
    Location
    India
    Posts
    68

    Working with two ranges

    Hi,

    The following formula will look for the value of the cell G1 in range A1 : B6 and then will add the value in column B to the value in H1.

    =IF(ISERROR(VLOOKUP(G1,$A$1:$B$6,2,0))," ",SUM(VLOOKUP(G1,$A$1:$B$6,2,0),H1))

+ 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. name dynamic ranges with VBA
    By robotlust in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2008, 01:04 PM
  2. Working named ranges in multiple sheets from vba
    By brucemc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2007, 09:07 PM
  3. Working with ranges
    By gtorres in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2007, 12:11 PM
  4. Working with ranges
    By okaderli in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2007, 10:12 PM
  5. Working with Ranges
    By somefred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2006, 10:04 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