+ Reply to Thread
Results 1 to 3 of 3

Referencing cell in another tab

  1. #1
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    367

    Referencing cell in another tab

    Hi,

    Please find enclosed sheet and column AC in tab wageresigter. Here I am directly referencing EmployeeMaster!L2

    Instead, I need to match the ID in both the tabs and then get value of L2.

    How can I achieve this ?
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Referencing cell in another tab

    Original formula in AC2:
    =IF(EmployeeMaster!K2="Y",IF(SUM(W4:AB4)>SUM(P4:U4),0,IF(SUM(P4:U4)>CalculationBasics!$B$5,CalculationBasics!$B$5*CalculationBasics!$B$6%,SUM(P4:U4)*CalculationBasics!$B$6%)),0)

    New formula suggestion:
    =IF(VLOOKUP($B4, EmployeeMaster!$A:$K, 11, 0)="Y",IF(SUM(W4:AB4)>SUM(P4:U4),0,IF(SUM(P4:U4)>CalculationBasics!$B$5,CalculationBasics!$B$5*CalculationBasics!$B$6%,SUM(P4:U4)*CalculationBasics!$B$6%)),0)
    _________________
    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
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    367

    Re: Referencing cell in another tab

    Quote Originally Posted by JBeaucaire View Post
    Original formula in AC2:
    =IF(EmployeeMaster!K2="Y",IF(SUM(W4:AB4)>SUM(P4:U4),0,IF(SUM(P4:U4)>CalculationBasics!$B$5,CalculationBasics!$B$5*CalculationBasics!$B$6%,SUM(P4:U4)*CalculationBasics!$B$6%)),0)

    New formula suggestion:
    =IF(VLOOKUP($B4, EmployeeMaster!$A:$K, 11, 0)="Y",IF(SUM(W4:AB4)>SUM(P4:U4),0,IF(SUM(P4:U4)>CalculationBasics!$B$5,CalculationBasics!$B$5*CalculationBasics!$B$6%,SUM(P4:U4)*CalculationBasics!$B$6%)),0)

    It is working. Thank You

+ 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] Cell formula referencing file path contained in separate cell not working
    By BrokenDome in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2019, 08:17 AM
  2. Replies: 0
    Last Post: 01-09-2013, 06:58 AM
  3. Replies: 5
    Last Post: 12-19-2012, 09:16 AM
  4. Replies: 1
    Last Post: 10-14-2012, 12:23 AM
  5. Change Cell Font Color if Cell Contains Formula Referencing Another Cell
    By wilcox.patrick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 10:24 PM
  6. Replies: 2
    Last Post: 04-11-2012, 02:06 PM
  7. Lookup referencing cell referencing range
    By cmcconnehey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-15-2008, 06:19 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