+ Reply to Thread
Results 1 to 3 of 3

define range based on cell value in another column

  1. #1
    Registered User
    Join Date
    03-06-2007
    Posts
    27

    define range based on cell value in another column

    Hi....I'm trying to define a range based on the value of another column. For instance in the simplified example below I want to search column A until it finds a cell containing say "1" (or whatever I specify) and then adds the cell corresponding in column B to the range. The range for Area 1 for the example below would include Tools 19, 28, and 13.

    A B
    Area 1 Tool 19
    Area 1 Tool 28
    Area 2 Tool 25
    Area 4 Tool 35
    Area 1 Tool 13
    Area 3 Tool 41

    Thanks

    Sam

  2. #2
    Registered User
    Join Date
    08-10-2006
    Posts
    58
    Unless I'm misunderstanding you, this can be done with a formula. Try this in a cell:
    =SUMIF(A1:A10,"=1",B1:B10)

    This will look at the values in Column A and if they are equal to 1, it will sum the corresponding value in column B.

    Jeff

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388
    The Find/FindNext and Union methods should do what you need.
    rngBig in the code below is the range defined based on values in column B.
    Just change strToFind and the search range as required.
    Please Login or Register  to view this content.

+ 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