+ Reply to Thread
Results 1 to 9 of 9

Formula to find a specific word that and number adjacent to it

  1. #1
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    195

    Formula to find a specific word that and number adjacent to it

    I'm needing to use a formula that will search for the text 'Total' in Column A and if the cell adjacent to it (Column B) has a value '1' to return the word 'Yes'.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula to find a specific word that and number adjacent to it

    Where do you want the "Yes" to be returned? In which column?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    195

    Re: Formula to find a specific word that and number adjacent to it

    in cell E20

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula to find a specific word that and number adjacent to it

    Put this formula in E2 and drag down -
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    195

    Re: Formula to find a specific word that and number adjacent to it

    Thanks, I have 300 worksheets and need to come up with a list of all the worksheets that have a Total of 1. Is there a way of doing this?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula to find a specific word that and number adjacent to it

    You mean you need a kind of report in a new sheet showing the names of sheets which have a total of 1?

    Is this total field in 1 specific cell in each of these worksheets or can it be anywhere in the column? What details you want to be displayed in the summary sheet - only the sheet name?

  7. #7
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    195

    Re: Formula to find a specific word that and number adjacent to it

    Yes that would be brilliant. The 'Total' text does not always appear in one specific cell. However, it is always in Coulmn A and the corresponding value is always in Column B. In the report sheet it would be good to have the sheet name in Coulmn A and cell A1(Title of each worksheet) in Column B.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula to find a specific word that and number adjacent to it

    Try this -
    Please Login or Register  to view this content.

    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button

  9. #9
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    195

    Re: Formula to find a specific word that and number adjacent to it

    Excellent - that works perfectly. Thank you very much for your help

+ 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