+ Reply to Thread
Results 1 to 7 of 7

Find within a range give different variables

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Saudi Arabia
    MS-Off Ver
    Excel 2007 - 2010
    Posts
    73

    Find within a range give different variables

    Hello everyone!!

    Im trying to find 4 variables:

    Please Login or Register  to view this content.
    In this given range:

    Please Login or Register  to view this content.
    If it doesnt find non of them, the macro should close the sheet

    Can you help me? Thanks!!

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Find within a range give different variables

    you are searching "Resp. Co" (not your variables) in the whole Sheet, non in a range.
    If solved remember to mark Thread as solved

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Find within a range give different variables

    Hi, jinho,

    maybe like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    08-07-2013
    Location
    Saudi Arabia
    MS-Off Ver
    Excel 2007 - 2010
    Posts
    73

    Re: Find within a range give different variables

    Yes Im searching for "Resp. Co" to be able to set a range.

    Inside that range I need to find the Cp's

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Find within a range give different variables

    Hi, jnh0,

    Please Login or Register  to view this content.
    Ciao,
    Holger

  6. #6
    Registered User
    Join Date
    08-07-2013
    Location
    Saudi Arabia
    MS-Off Ver
    Excel 2007 - 2010
    Posts
    73

    Re: Find within a range give different variables

    Something like this is what I need, but its something wrong with "findcp".

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-07-2013
    Location
    Saudi Arabia
    MS-Off Ver
    Excel 2007 - 2010
    Posts
    73

    Re: Find within a range give different variables

    Can you tell me what Im doing wrong here:

    Please Login or Register  to view this content.
    is somethig wrong with "findcount"

+ 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] How to find a cell value and when found give a value from other cell range.
    By tegno in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 04:09 PM
  2. Replies: 2
    Last Post: 09-14-2012, 12:45 PM
  3. Macro to find the key value in xls and give its corresponding value
    By svnarjun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2012, 03:15 AM
  4. [SOLVED] Give value to item that meets two different variables
    By ddthomps in forum Excel General
    Replies: 2
    Last Post: 08-06-2012, 02:45 PM
  5. IF statement using multiple variables to give multiple outcomes
    By stujordan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2009, 06:46 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