+ Reply to Thread
Results 1 to 10 of 10

Using IS Number and Search function

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    4

    Smile Using IS Number and Search function

    Hi all

    This is my first post and hoping someone can help me out,

    I am trying to workout a formula to look-up and categorize data from a bank statement, without having to complete manually monthly.

    So far I have a formula that returns the amount spent, but would need an extra column and separate table for each category.

    IF(OR(ISNUMBER(SEARCH(" "&$G$3:$G$11&" "," "&A2&" "))),B2,0) where


    Instead of returning B2, I would like to return a value from the table in column H3:H11 that corresponds with G2:G11, as shown below.

    ColumnG ColumnH
    Aldi Food
    woolworths Food
    Coles Food
    saint Nicholas School
    Blooms Medicines, toiletries, hairdressing, personal items
    vodafone telephone

    So for example if Aldi is in the text in A2, then I would like to return food ( from a lookup table similar to above) into the column where my formulae is ( say F2).

    Appreciate any help, Thanks, Marie.

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Using IS Number and Search function

    hi attach a Sample workbook

    Punnam

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Using IS Number and Search function

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    07-09-2014
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    4

    Re: Using IS Number and Search function

    sample.xlsx


    HI all,

    Please see attached example. Sorry should have attached this to the first post.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Using IS Number and Search function

    In E2 Cell

    =IFERROR(VLOOKUP(A2,Table1,2,FALSE),"")

    Drag it down...

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using IS Number and Search function

    that wont work for looking up a list of keywords
    =IFERROR(LOOKUP(10^99,SEARCH(" "&$G$3:$G$10&" "," "&A2&" "),$H$3:$H$10),"unknown") will tho
    but since you have a table you might as well use structured references to the table because as you add to the table it will dynamically be used in the formula
    i renamed column1/column2 just for clarity to item/catagory
    and resized the table to the data already in it then used
    =IFERROR(LOOKUP(10^99,SEARCH(" "&Table1[item]&" "," "&A2&" "),Table1[catagory]),"unknown")
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    07-09-2014
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    4

    Re: Using IS Number and Search function

    Hi,

    This formula would work if the data in column A is exactly the same as in column G. (as is the case for some of my data)

    In my case I want to do a search for keywords in A that are the same as G.

    e.g Column A might have Direct Debit 119218 VODAFONE and the look-up table has VODAFONE. using vlookup this will not return a value.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using IS Number and Search function

    see my last post, but you had this
    Direct Debit 147014 REA TRANSACTIONS RENTPAYMENT6018590 now the formula would not find RENT in that
    so i put a space in
    Direct Debit 147014 REA TRANSACTIONS RENT PAYMENT6018590
    if your data doesnt have spaces then a rethink is required

  9. #9
    Forum Contributor
    Join Date
    10-19-2012
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    134

    Smile Re: Using IS Number and Search function

    Hi,


    Please find the attached file,

    And reply is that works fine for you or not,

    once your thread solved mark it as solved.

    Rajan
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-09-2014
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    4

    Re: Using IS Number and Search function

    Thank you MartindWilson. That works perfectly and will save me hours of trying to do it manually.

    Glad I posted to the forum.

+ 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. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  2. Replies: 1
    Last Post: 10-18-2012, 05:52 AM
  3. [SOLVED] Search in a row for a column number after a Vlookup search.
    By Fiebuls in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-11-2012, 04:25 AM
  4. Replies: 13
    Last Post: 12-03-2010, 10:39 PM
  5. [SOLVED] How do I create a function to search a range for a number and...
    By NECCExcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2005, 05:20 PM

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