+ Reply to Thread
Results 1 to 2 of 2

Help:Macro to search a text in each column and return value

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Help:Macro to search a text in each column and return value

    hi all,
    i am looking for a help on VBA code for the below scenario, appreciate your inputs.

    scenario :
    search a particular text in a column range

    for ex: column B contains various fruits names differently but i want to search for a particular text(Ex:apple) and return the respective column A value

    column A
    112
    22
    34
    23
    675
    66
    556
    433
    Column B
    Apple
    Sweet apple
    green apple
    grapes
    seedless grapes
    apple small
    Green grapes
    red grapes

    Thanks and Best Regards

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help:Macro to search a text in each column and return value

    rama_126,

    Welcome to the forum!
    If you are searching for "apple", should the result be 112? Or the sum of all instances of "apple": 112+22+34+66 = 234?
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

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