+ Reply to Thread
Results 1 to 6 of 6

Get an Absolute Sheet Reference in an IF statement

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Get an Absolute Sheet Reference in an IF statement

    =IF(F6="Management",SectionData!$C$7,"")=IF(F6="Accounts",SectionData!$C$6,"")=IF(F6="Manufacture",SectionData!$C$8,"")=IF(F6="Sales",SectionData!$C$9,"")

    That's my statement, and it's not working. What it's supposed to do is if the cell F6 in the sheet "Staff" says "Management", it's supposed to collect the data from cell C7 in the sheet "SectionData". If F6 says "Accounts", then the cell should display data from cell C6 in the sheet "SectionData". What am I doing wrong?
    Oh, and the sheet reference has to be absolute.

    I'm new to Excel.
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Get an Absolute Sheet Reference in an IF statement

    =VLOOKUP(F6,'Section Data'!$B$6:$C$9,2,0)

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Get an Absolute Sheet Reference in an IF statement

    When there is no data in F6, how do I make it display nothing instead of #N/A?

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Get an Absolute Sheet Reference in an IF statement

    =iferror(VLOOKUP(F6,'Section Data'!$B$6:$C$9,2,0),"")

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Get an Absolute Sheet Reference in an IF statement

    =IF(f6="","",VLOOKUP(F6,'Section Data'!$B$6:$C$9,2,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Registered User
    Join Date
    08-20-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Get an Absolute Sheet Reference in an IF statement

    When I enter both of those formulas, a save file thing comes up.

+ 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.6.0 RC 1