+ Reply to Thread
Results 1 to 21 of 21

IF function - display cell from another worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    09-11-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    12

    IF function - display cell from another worksheet

    Hello, please help!
    I have an IF function that I need to link to a cell in another worksheet.
    The formula I am using is:

    =IF(D30="Lg Doc Copies","Pricing!B7")

    D30 in the one worksheet says Lg Doc Copies (yes I am sure :P)
    D30 just stays blank, but I want it to display the content of B7 in the Pricing worksheet.

    Much thanks!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: IF function - display cell from another worksheet

    Remove the quotation marks from around "Pricing!B7". Where are you putting this formula? It will not change D30, but should change the cell in which the formula is placed. Also what should happen if D30 does not equal "Lg Doc Copies?". That part is missing from your formula.

    The syntax for the =IF is =IF(Criteria, Value if True, Value if False)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-11-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    12

    Re: IF function - display cell from another worksheet

    Yes I did try removing the quotation marks. It still did not work. The formula is going in A30.
    In short, I want this to happen:
    If B30 says Lg Doc Copies, I want A30 to display the cell contents of B7 in the Pricing worksheet.

    This is the FULL formula I am using (note: it worked perfectly before trying to reference another worksheet):

    =IF($B30="","", IF($B30="Lg Doc Copies","Pricing!B7",IF($B30="8x11 BW","0.20",IF(B30="11x17 BW",".30",IF($B30="8x11 Color","1.00",IF($B30="11x17 Color","2.00",IF($B30="12x18 BW",".40",IF($B30="12x18 Color","2.50",IF($B30="Line Color Plots","1.50",IF($B30="Medium Color Plots","3.00",IF($B30="Full Color Plots","5.00", IF($B30="BW HP Plots", "1.50", IF($B30="Lg Scans - 1-5", "5.00", IF($B30="Lg Scans - 6+", "5.00", IF($B30="Sm Scans", ".50", IF($B30="Laminate", "4.00", IF($B30="Blank Cardstock", ".35", IF($B30="BW Cardstock", ".50", IF($B30="Color Cardstock", "1.50", IF($B30="8x11 Clear Cover", "1.50", IF($B30="Cerlox - 1/4, 1/2, 5/16", "2.00", IF($B30="Cerlox - 5/8, 3/4", "2.75", IF($B30="Cerlox - 1", "3.00", IF($B30="Cerlox - 1 1/4, 1 1/2", "3.50", IF($B30="Cerlox - 1 3/4, 2", "4.00", IF($B30="Duracopy", "2.50", IF($B30="Mylar BW", "3.50", IF($B30="Mylar Color", "5.00", IF($B30="Canvas", "8.00", IF($B30="Vellum", "1.50"))))))))))))))))))))))))))))))

  4. #4
    Registered User
    Join Date
    09-11-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    12

    Re: IF function - display cell from another worksheet

    bumpbumpbump

  5. #5
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: IF function - display cell from another worksheet

    jaideb:

    That nested if formula is quite long. I would use a vlookup table to get the data you wanted. I don't know what the rest of your worksheet looks like since it wasn't posted, but I made a sample worksheet with 3 tabs (Main Sheet, Lookup Table and Pricing). In the Lookup Table tab I added all of your possible choices (Lg Doc Copies through Vellum) and their corresponding values (.20 to 1.50). I took all that from your If statement. Next, I used that in Cell B30 of the Main Sheet tab to make a dropdown. Once a value is selected from the dropdown, the formula in cell A30 uses a vlookup to pull the right value. As for Cell B7 in pricing tab, I simply made the lookup table for Lg Doc Copies point to the Pricing!B7 cell to pull it's value.

    This way, you can more easily update your lookup table if details change, and don't have to worry about updating that if statement.

    Does that help?

    Josh
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-11-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    12

    Re: IF function - display cell from another worksheet

    That is awesome Josh thank you! That formula is great for the basic pricing!

    However, the main issue that I am trying to address is we have many customers with different pricing. I am trying to link to the worksheet with specific customer pricing. I am attaching my basic spreadsheet, maybe you can see a way for me to do this effectively.
    Attached Files Attached Files

+ 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. display multiple cell values in one cell on a different worksheet
    By sheldon8 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-29-2012, 12:58 PM
  2. Replies: 2
    Last Post: 10-23-2012, 05:30 PM
  3. How to get current worksheet name to display in a cell?
    By xfixiate in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2006, 04:30 AM
  4. Can a cell be linked to display the name of the worksheet tab?
    By Blue Jay One in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2006, 11:15 PM
  5. trying to find how to display worksheet name in cell
    By Yvonne Barber in forum Excel General
    Replies: 1
    Last Post: 09-15-2005, 04:05 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