+ Reply to Thread
Results 1 to 6 of 6

Formula without sheet names

  1. #1
    Registered User
    Join Date
    05-25-2018
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    67

    Formula without sheet names

    Good afternoon,

    I have the following formula which works great, but I have to change the worksheet name every time I use it. Is it possible to set up this formula where I don't have to change the worksheet names? Could this formula also be set up as a macro?


    =IFERROR(INDEX('[CORVEL_CLEAN_BILLING 051818 after Clearing with Formula.xlsm]CORVEL_CLEAN_BILLING 051818'!$G:$G,MATCH(LEFT(E1286,9),LEFT('[CORVEL_CLEAN_BILLING 051818 after Clearing with Formula.xlsm]CORVEL_CLEAN_BILLING 051818'!$H:$H,9),)),"")

    I have also attached the spreadsheets for this formula.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula without sheet names

    I dont see the file you mention in your post? I understand you may have created a dummy file for us, but maybe adjust your formula to show that?

    I have just opened both files and cannot see that formula anyway. Nor can I make out what you expect?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-25-2018
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    67

    Re: Formula without sheet names

    Hi Ford,

    I have uploaded the spreadsheets showing the formula that I am using, but I would like it to make the claim numbers and net savings red that have a match. I would also like to change the formula so that I don't have to change the workbook and worksheet names every time I use it.

    Here is the formula that I am using.

    =IFERROR(INDEX('[Sample CLEAN_BILLING 051818 after Clearing.xlsm]CLEAN_BILLING CA 051818'!$D:$D,MATCH(LEFT(A5,9),LEFT('[Sample CLEAN_BILLING 051818 after Clearing.xlsm]CLEAN_BILLING CA 051818'!$E:$E,9),)),"")
    Last edited by kocumna; 06-14-2018 at 01:54 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula without sheet names

    1. I still cannot see any formulas in your files (other that the SUM() formula), but not really sure that is relevant anyway.
    2. To make cells change color, you would use Conditional Formatting (or VBA), but CF does not work across different files.
    3. It looks fo me like you intend having different sheets or files for each date? I would advise against that, rather just put all your data in 1 sheet, each date below the previous date. That will make any analysis MUCH simpler
    You could even put both the files you sent me, into the 1 file as well, and have 1 sheet for all data, and another for the x-check info

    1 way to do this would be to use MATCH(), in a helper column, then base the CF on that. not sure which file you need to test against, but I used Sample CLEAN_BILLING 051818 after Clearing (2).xlsm
    C5=MATCH(A5,'[Sample CLEAN_BILLING 051818 after Clearing (2).xlsm]CLEAN_BILLING CA 051818'!E$2:E$9,0)

    Then use CF
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =$C5
    format font as needed

  5. #5
    Registered User
    Join Date
    05-25-2018
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    67

    Re: Formula without sheet names

    I'm not sure why it won't keep the formula once I put it in. I have tried several times. The formula that I posted is the formula that I am using in the below workbook that I attached above in post #1.

    I need to use separate workbooks because we receive a report every week with different claim number and patients and it is uploaded to new workbooks.

  6. #6
    Registered User
    Join Date
    05-25-2018
    Location
    Connecticut
    MS-Off Ver
    2016
    Posts
    67

    Re: Formula without sheet names

    You mentioned that it can be done using VBA. Would you please tell me how you would do that?

+ 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. Formula to find out same names from in xls sheet
    By kuldeep19853 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-04-2014, 04:01 PM
  2. [SOLVED] Create an Array which has Sheet Names excluding a Few Sheet Names to be used in a MACRO
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-29-2013, 03:24 PM
  3. Replies: 1
    Last Post: 05-14-2012, 10:14 AM
  4. Getting a list of Sheet Names by excluding certain Sheet Names instantenously..
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-09-2012, 12:16 PM
  5. Formula too long - too many sheet names
    By Greed in forum Excel General
    Replies: 2
    Last Post: 11-28-2011, 11:08 AM
  6. Ref sheet names in a formula
    By StumpedonThis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2009, 12:15 PM
  7. Formula containing sheet names
    By lara5555 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2008, 09:16 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