+ Reply to Thread
Results 1 to 2 of 2

Find keyword in column B and print vaue of column E to column G not working

  1. #1
    Registered User
    Join Date
    05-30-2017
    Location
    uk
    MS-Off Ver
    2007
    Posts
    1

    Find keyword in column B and print vaue of column E to column G not working

    Hi, total beginner here...

    This formula is supposed to look at whether column Bx contains the string '142', and if it does, to print the value of cell Ex in cell Gx. Except it doesn't. I thought the syntax was correct, is it not?

    in column G:-
    IF(B1:B871,"*142*", E1:E871)

    I've attached a short example jpeg to illustrate the problem; G6 should read "0.9585"

    Thanks anyone who can help!
    Attached Images Attached Images
    Last edited by moorea21; 05-30-2017 at 04:41 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Find keyword in column B and print vaue of column E to column G not working

    Pictures aren't much use. I had to type in a mock-up on an Excel sheet. Your explanation didn't say whether there could be multiple results, or just one. So I assumed multiple results were possible. In MY sheet, with the search term in E1, use this array formula, copied down:

    =IFERROR(INDEX($C$1:$C$10,SMALL(IF(IF(ISERROR(SEARCH($E$1,$B$1:$B$10)),FALSE,TRUE),ROW($B$1:$B$10)),ROWS($1:1))),"")


    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    next time please provide a full explanation and an excel sheet.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. Find next positive number in column after specified vaue
    By lar9149 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 10-07-2016, 06:29 PM
  2. Replies: 6
    Last Post: 01-29-2014, 12:22 AM
  3. Replies: 4
    Last Post: 12-16-2013, 06:29 PM
  4. Replies: 5
    Last Post: 07-24-2013, 09:51 AM
  5. [SOLVED] Find three highest values on column A and print column B
    By diegodacal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2013, 04:05 PM
  6. Replies: 2
    Last Post: 07-13-2012, 04:02 AM
  7. [SOLVED] How to copy data from Column B to Column D if a keyword does not appear in coulmn B
    By Glayva in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 09:05 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