+ Reply to Thread
Results 1 to 4 of 4

Thread: Partial text of reference cell

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Partial text of reference cell

    Please see attached. I tried to copy the formulas and they don't paste and pull the information the way it should. Please see previous post by me for what I am trying to do.

    Sample Excel.xlsx
    Attached Files Attached Files

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,222

    Re: NOT SOLVED!!! Function where results cell equals partial "text" of reference cell

    Just copy the account codes from column B of the Account Codes sheet and paste at K3. then copy the L3 formula down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-07-2012
    Location
    Tulsa, OK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: NOT SOLVED!!! Function where results cell equals partial "text" of reference cell

    Quote Originally Posted by JBeaucaire View Post
    Just copy the account codes from column B of the Account Codes sheet and paste at K3. then copy the L3 formula down.
    Didn't work. Plus I don't want all the codes in Column K, unless they are used in Column H. Only want totals in K to show and consolidate respective amount totals of J in L. For example, if I have three "GAS code 6503" expenses of $25.00, I want the Code of "6503" to show in K and $75.00 to show in L.

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,222

    Re: Partial text of reference cell

    In sheet Account Codes, F1 = "Used".

    F2: =IF(ISNUMBER(MATCH(B2&"*", 'Expense Report'!H:H, 0)), N(F1)+1, N(F1))
    ...and copy that cell down the table.

    On sheet Expense Report, put this in K3 and copy down:

    =IF(ROW(A1)>MAX('Account Codes'!F:F), "", INDEX('Account Codes'!B:B, MATCH(ROW(A1), 'Account Codes'!F:F, 0)))


    Now the codes will not only appear as they are used, they will appear in numeric order, or the order of your original table on the other sheet.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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.2.0