+ Reply to Thread
Results 1 to 10 of 10

making cells in tab2 = cells in tab1 in same workbook

  1. #1
    Registered User
    Join Date
    06-08-2011
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    23

    Exclamation making cells in tab2 = cells in tab1 in same workbook

    My workbook has 4 Tabs PCM Data, Analytical Data, QA-QC, & View Report. I am trying to get 2 cells in View Report = 2 cells in QA-QC. I am trying to get the date(B10) in tab View Report = Date in tab QA-QC(D9), I tried: ='QA-QC'!D9 That didn't work. I am also trying to have tab View Report cell Analyst(F10) = tab QA-QC cell =K9:M9 I tried ='QA-QC'!K9:M9 and I am get an error: #value! What do I need to do to make this work? Also If there is no date entered in tab QA-QC I want the date cell in tab View Report to be blank. the password for the attachment is 12345.Please feel free to look at the file.
    Last edited by jimb01; 06-09-2011 at 06:24 PM. Reason: forgot to add a part of the question

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: making cells in tab2 = cells in tab1 in same workbook

    Hello, Jimb01. Welcome to forum!

    Please attach a dummy file with your expected results. So the members can see your data structure. Scroll down click Go Advanced then down click Manage Attachments, upload your dummy workbook
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: making cells in tab2 = cells in tab1 in same workbook

    Hello,

    the formula in View Report in cell B10 works correctly. The problem is that the cell in sheet QA-QC is blank. If you reference an empty cell with the syntax =Sheet1!A1, then that cell will show a zero. A zero formatted as a date will look like 0-Jan-1900.

    You can change the date format of that cell this way: click the cell, open the format dialog, click "Custom" and in the "Type field" after the yyyy enter two semicolons ;;

    I assume that your date format is mm/d/yyyy, so the Type field should look like this

    mm/dd/yyyy;;

    This will suppress zero values from being displayed.

    As to the second issue: K9:M9 is a reference to a merged cell. You can simply change the formula to

    ='QA-QC'!K9

    In order to suppress the 0 when no name has been selected in the QA sheet, you can use the custom format

    ;;;@

  4. #4
    Registered User
    Join Date
    06-08-2011
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: making cells in tab2 = cells in tab1 in same workbook

    Thank yoy that worked

    Now I have a Major issue. By law we are required to show the asbestos fibers found. So, if we find 5 1/2, we must show it as 5.5 which I am in tab QA-QC cell B17 for test #1 and G17 for test #2. The fibers are the divided by the Fields in this case 100. We must show it as 5.5/100 in cell C21 for test #1 and C22 for test #2, but it is rounding up to 6. We must do it as and show it as 5.5/100. That infomation needs to be shown in tab "View report as well. I have added a new copy of the file with the fixes you suggested and I entered 5.5 for test 1 and 7.5 for test 2 so you can see what I mean. Once again to unprotect the sheet and Share the workbook is 12345.

    Thank you so much. I am learning alot. You are great!!!
    Last edited by teylyn; 06-09-2011 at 05:15 PM. Reason: removed quote

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: making cells in tab2 = cells in tab1 in same workbook

    Please do not quote whole posts. Use the Quick Reply box or the Post Reply button, NOT the Quote button to post an answer.

    The sheet is protected and the file is shared. I cannot unprotect the shared workbook, because it has a password. If you need help with this, please upload a copy that can actually be used.

    By the way, sharing a workbook will send it on a path to failure, data loss, corruption and frustration.

    And finally, please do not use Visitor Messaging to ask questions or draw attention to your question. This creates noise and clutter that nobody is keen on.
    Last edited by teylyn; 06-09-2011 at 05:16 PM.

  6. #6
    Registered User
    Join Date
    06-08-2011
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: making cells in tab2 = cells in tab1 in same workbook

    Hi Teylyn, Here is the file unprotected for:

    Now I have a Major issue. By law we are required to show the asbestos fibers found. So, if we find 5 1/2, we must show it as 5.5 which I am in tab QA-QC cell B17 for test #1 and G17 for test #2. The fibers are the divided by the Fields in this case 100. We must show it as 5.5/100 in cell C21 for test #1 and C22 for test #2, but it is rounding up to 6. We must do it as and show it as 5.5/100. That infomation needs to be shown in tab "View report as well. I have added a new copy of the file with the fixes you suggested and I entered 5.5 for test 1 and 7.5 for test 2 so you can see what I mean.

    Thanks

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: making cells in tab2 = cells in tab1 in same workbook

    Hello,

    the cell delivers the result of a calculation in P2 and is formatted to show the resulting number as a fraction. Unfortunately, you cannot show a fraction like 5.5/100. You can change the format for the fraction to show more digits, so the number displays like 11/200.

    Or, since the cell does not have any dependents, you could use a formula like

    =B17&"/"&E17

    This will simply concatenate the value in B17 and the value in E17, with a / sign between the values. The result will be text, not a number.

    cheers,

  8. #8
    Registered User
    Join Date
    06-08-2011
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    23

    Exclamation Re: making cells in tab2 = cells in tab1 in same workbook

    Hi Teylyn, I think I only have 1 more problem. Yea I am trying to get tab "View Report" cells A23 & A24 titled Sample Number = Tab "QA-QC" cells B21 & B22 titled Sample number. I added the file with the fixes you already gave me for the other problems already in place.

  9. #9
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: making cells in tab2 = cells in tab1 in same workbook

    Use the same techniques as described above for the QC analyst cell. Again, these are merged cells and you only need to refer to the top left cell of a merged range. Also, to suppress zeros, use one of the custom formats described above.

    cheers,

  10. #10
    Registered User
    Join Date
    06-08-2011
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    23

    Exclamation Re: making cells in tab2 = cells in tab1 in same workbook

    I tried ='QA-QC'!B21 & ='QA-QC'!B22 and they didnt work and the cell is custom formated as ;;;@ am I missing something?

+ 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