+ Reply to Thread
Results 1 to 2 of 2

Modifying IF statement formula to align with deletion of tabs and addition of new tab

  1. #1
    Forum Contributor
    Join Date
    02-04-2015
    Location
    Dallas,Texas
    MS-Off Ver
    excel 2013
    Posts
    191

    Modifying IF statement formula to align with deletion of tabs and addition of new tab

    Hello,

    I am modifying the existing formula with the new insurance tab "BCBS CARE FIRST VA.MD.DC", there are 3 tabs Aetna, Cigna, and United which all three will be deleted and there will be one tab "BCBS CARE FIRST VA.MD.DC". Could you please help me to modify this original formula to include only 1 tab in the model "BCBS CARE FIRST VA.MD.DC"?

    All the ranges are fine I just need to figure what to deleted and replace with "BCBS CARE FIRST VA.MD.DC"

    [=IF(AK2="AETNA", IF(AL2="ACA OON", IF(AT2="PPO", 'BCBS CARE FIRST VA.MD.DC'!$K$39, 'BCBS CARE FIRST VA.MD.DC'!$K$40), IF(AT2="PPO",'BCBS CARE FIRST VA.MD.DC'!$K$36, 'BCBS CARE FIRST VA.MD.DC'!$K$37)), IF(AK2="Cigna", IF(AL2="ACA OON", IF(AT2="PPO", 'Cigna-FOR REFERENCE'!$K$39, 'Cigna-FOR REFERENCE'!$K$40), IF(AT2="PPO",'Cigna-FOR REFERENCE'!$K$36, 'Cigna-FOR REFERENCE'!$K$37)), IF(AK2="United", IF(AL2="ACA OON", IF(AT2="PPO",#REF!,#REF!), IF(AT2="PPO",#REF!,#REF!)), "ERROR")))*IF(AK2="AETNA", IF('BCBS CARE FIRST VA.MD.DC'!$A$24="All States", BG2, IF('EOM Data'!AH2='BCBS CARE FIRST VA.MD.DC'!$B$24, 1, 0)), IF(AK2="CIGNA",IF('Cigna-FOR REFERENCE'!$A$24="All States", BG2, IF('EOM Data'!AH2='Cigna-FOR REFERENCE'!$B$24, 1, 0)), IF(AK2="UNITED",IF(#REF!="All States", BG2, IF('EOM Data'!AH2=#REF!, 1, 0)), "ERROR" )))]


    Thanks,

    Pigment01
    Last edited by pigment01; 09-14-2017 at 11:22 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Modifying IF statement formula to align with deletion of tabs and addition of new tab

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ben Van Johnson

+ 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. [SOLVED] Need help with modifying a code for addition across tables
    By realdemigod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2016, 11:00 AM
  2. Apply formulas on row Addition/deletion
    By linok in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2014, 07:20 AM
  3. Macro to update row addition/deletion across multiple worksheets
    By lorigies in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2014, 09:24 AM
  4. How To align (set tabs or columns) on a text string
    By ltdtep in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-11-2009, 09:33 AM
  5. Addition and Deletion
    By ravi_m5_2000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2009, 10:06 AM
  6. Need Helping With Addition Across Tabs
    By cleary71 in forum Excel General
    Replies: 2
    Last Post: 10-15-2008, 07:22 PM
  7. protect columns (prevent addition or deletion)
    By qwertyjjj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2006, 04:20 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