+ Reply to Thread
Results 1 to 6 of 6

Vlookup up if the string before # is found and...

  1. #1
    Registered User
    Join Date
    12-26-2018
    Location
    Orlando
    MS-Off Ver
    2016/2017
    Posts
    51

    Vlookup up if the string before # is found and...

    I have this worksheet 2 tabs
    Aging
    All transactions


    Researching customer accounts I want all the data to be easy to understand looking at one single screen.

    The research starts if the customer string on "All transaction's TAB" column B after the # has a record that appears on the Column L Aging tab. Then the X column on all transactions Tab will read "YES" or "NO"

    My company has customers # with sub accounts (many houses ( -001,003,0014 and so on ) under one single customer account #. I want Excel to look for the string after the "#" and before the "-" in case of having one in Colum B "All transaction's tab" or Colum L Aging Tab.

    Manually I did how I want it to look.
    I need the formulas on columns X and Y All transactions Tab.


    In in AGING TAB Colum L one of the customer string after the "#" is 103833.
    If that string "103833" is found on the ALL transactions tab Column B then I want on the all transaction TAb column X to reflect YES, otherwise NO.
    On the all transaction TAB I want the open balance column Y to show the result for sustracción of column U and W whenever column G reads “invoice” to show the result as positive but if column G reads other string than "Invoice" then I want to convert to a negative number in red.

    Please be sure that the cells formating in column each instance where the # appears will let me filter when I type the customer number on the filter search bar.



    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Vlookup up if the string before # is found and...

    The first one is easy. In X2 copied down:

    =IF(ISNA(MATCH(LEFT(D2,6)&"*",AGING!$M$2:$M$3,0)),"NO","YES")

    Then in Y2 copied down:

    =IF(U2="","",-IF(G2="Invoice",0-U2,U2)-W2)

    Column Y has been conditionally formatted to show negative numbers in red.
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Vlookup up if the string before # is found and...

    Or,

    [X2] : =IF(COUNTIF(AGING!M$2:M$3,LEFT(D2,6)&"*"),"YES","NO")

    [Y2] : =IF(G2="","",IF(G2="Invoice",U2,-W2-U2))

    All copied down

    Regards

  4. #4
    Registered User
    Join Date
    12-26-2018
    Location
    Orlando
    MS-Off Ver
    2016/2017
    Posts
    51

    Re: Vlookup up if the string before # is found and...

    Good Morning! In orlando FL is 7:13 AM

    Any idea why the formula in Y is leaving "Credit Memo" and "Credit card refund" amounts behind, whe I past the formula in a diferent sheet (same columns)?

    Thank you!
    Last edited by NERYONEIL; 07-22-2019 at 07:20 AM.

  5. #5
    Registered User
    Join Date
    12-26-2018
    Location
    Orlando
    MS-Off Ver
    2016/2017
    Posts
    51

    Re: Vlookup up if the string before # is found and...

    Ali I got it is because I didn’t have a 0 column U for some credits memos or credit cards refund.

    Bosco for some reason your formula bright me NO to all.

    Thank you guys!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Vlookup up if the string before # is found and...

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Search a string to see if any words in list are found in string
    By nphadro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2018, 12:55 PM
  2. [SOLVED] Extract 5th string onwards but exclude 6th string onwards if found a specificlist of words
    By suchetherrah in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-07-2016, 03:48 AM
  3. VBA Find Partial String in String Array and Output the Found String Array Value
    By scherich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2014, 11:20 AM
  4. [SOLVED] Search for string and test the character that is found after the string
    By flipjarg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2013, 04:27 PM
  5. [SOLVED] IF range of cells contains string of text, return contents of cell where string is found
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-03-2013, 09:56 AM
  6. [SOLVED] problem finding string using .find method when string to be found contains ~ (a tilde)
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2013, 07:38 AM
  7. Parse String and Fill list box with Each Found Sub String
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2011, 05:56 PM

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