+ Reply to Thread
Results 1 to 20 of 20

How to linked a certain cell when criteria is meet

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    How to linked a certain cell when criteria is meet

    Hi. Please help me. Heres my issue.

    I got two sheet the GRAPH and the DATA.

    I needed to get the value of a cell(No. of Days) in the sheet DATA then copy it to the Sheet Graph.

    When the Date Submitted was not yet put the No. Of days must be copied under PENDING in the Sheet Graph. But if the date submitted was already put the No. Of days must be transferred to SUBMITTED.

    I attach the file for your reference

    Please help Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-16-2012
    Location
    hyderabad (india)
    MS-Off Ver
    Excel 2010 32-bit
    Posts
    47

    Re: How to linked a certain cell when criteria is meet

    Please check the data once. In data sheet.. for each SI, 3 row names under vessel found (PWA, HCE, CGA) which are same for all SI. But in graph data Different different names found under SI..(LHA,IBI..)

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to linked a certain cell when criteria is meet

    Just taking a guess that you want the data from column F if there is or is not a date in column D of the Data worksheet.

    Enter in Graph!B32 and copy across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter in Graph!B33 and copy across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Quote Originally Posted by newdoverman View Post
    Just taking a guess that you want the data from column F if there is or is not a date in column D of the Data worksheet.

    Enter in Graph!B32 and copy across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter in Graph!B33 and copy across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Hi. Thank You for your formula. But it does'nt return the value of the cell that i want although it automatically transferred to submitted when the date was inputted. I attach the file. Thank You

  5. #5
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Quote Originally Posted by newdoverman View Post
    Just taking a guess that you want the data from column F if there is or is not a date in column D of the Data worksheet.

    Enter in Graph!B32 and copy across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter in Graph!B33 and copy across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Hi. Thank You for your formula. But it does'nt return the value of the cell that i want although it automatically transferred to submitted when the date was inputted. I attach the file. Thank You
    Attached Files Attached Files

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to linked a certain cell when criteria is meet

    This is a much different data setup than the original. Will have to take a look at it tomorrow. Merged cells are a real curse to work with. Will likely have to unmerge all of them to get a solution worked out....if possible.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to linked a certain cell when criteria is meet

    As Ron says, merged cells are the devils work, you should avoid them if at all possible.

    I have come up with a suggestion, using a helper column on Data and a helper row in Graph

    1. In Data G2, copied down, use this...
    =IF(A2="",G1,A2)
    2. in Graph B29, copied across, use this...
    =IF(B30="",A29,B30)
    Both of these can be hidden if you want.

    Then for thePending...
    =IF(COUNTIFS(Data!$G$2:$G$62,Graph!B$29,Data!$B$2:$B$62,Graph!B$31,Data!$D$2:$D$62,"<>")=0,"",INDEX(Data!$F$2:$F$62,MATCH(B29&B31,INDEX(Data!$G$2:$G$62&Data!$B$2:$B$62,0),0)))
    copied across
    for Submitted...
    =IF(COUNTIFS(Data!$G$2:$G$62,Graph!B$29,Data!$B$2:$B$62,Graph!B$31,Data!$D$2:$D$62,"<>")=0,INDEX(Data!$F$2:$F$62,MATCH(B29&B31,INDEX(Data!$G$2:$G$62&Data!$B$2:$B$62,0),0)),"")
    copied across
    (Hope I got those 2 the right way round)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Hi. I try your suggestion but for the item with same name and same code example the name barican has 2 PWA it copied only the data Data:F7 but for the PWA Data;F8 it didnt copy. And also is there any way that the value will not be shown in the graph. Thank You
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Thank You i will wait for your reply.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to linked a certain cell when criteria is meet

    So, do you want the values added?

  11. #11
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Quote Originally Posted by FDibbins View Post
    So, do you want the values added?
    Not added actually but only copied.

  12. #12
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Quote Originally Posted by FDibbins View Post
    As Ron says, merged cells are the devils work, you should avoid them if at all possible.

    I have come up with a suggestion, using a helper column on Data and a helper row in Graph

    1. In Data G2, copied down, use this...
    =IF(A2="",G1,A2)
    2. in Graph B29, copied across, use this...
    =IF(B30="",A29,B30)
    Both of these can be hidden if you want.

    Then for thePending...
    =IF(COUNTIFS(Data!$G$2:$G$62,Graph!B$29,Data!$B$2:$B$62,Graph!B$31,Data!$D$2:$D$62,"<>")=0,"",INDEX(Data!$F$2:$F$62,MATCH(B29&B31,INDEX(Data!$G$2:$G$62&Data!$B$2:$B$62,0),0)))
    copied across
    for Submitted...
    =IF(COUNTIFS(Data!$G$2:$G$62,Graph!B$29,Data!$B$2:$B$62,Graph!B$31,Data!$D$2:$D$62,"<>")=0,INDEX(Data!$F$2:$F$62,MATCH(B29&B31,INDEX(Data!$G$2:$G$62&Data!$B$2:$B$62,0),0)),"")
    copied across
    (Hope I got those 2 the right way round)
    The values that were copied for the CODE are the same e.g GEC i got 3 GEC the values that were copied to the Graph are all 15 same goes for PWA,KBI Etc. I guess if they have the same code that values that was being copied was the same as the first code that matches.

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to linked a certain cell when criteria is meet

    OK try the attached, I had to add an extra helper column and row
    Attached Files Attached Files

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to linked a certain cell when criteria is meet

    Maybe this will work for you.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Quote Originally Posted by FDibbins View Post
    OK try the attached, I had to add an extra helper column and row
    Thanks for the formula. It works. But for the KKN and SJY it shows N/A

  16. #16
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Quote Originally Posted by ECYOJ View Post
    Thanks for the formula. It works. But for the KKN and SJY it shows N/A
    And also can you explain to me how did you do it so that i can use it when i added new data. Thanks.

  17. #17
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Quote Originally Posted by ECYOJ View Post
    Thanks for the formula. It works. But for the KKN and SJY it shows N/A
    And also can you explain to me how did you do it so that i can use it when i added new data. Thanks.

  18. #18
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to linked a certain cell when criteria is meet

    You are missing an entry for Penaranda on Graph sheet
    You only have 1 GRO on Graph, but 2 on Data. Fix that and it should work

  19. #19
    Registered User
    Join Date
    03-11-2014
    Location
    manila,philippines
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: How to linked a certain cell when criteria is meet

    Quote Originally Posted by FDibbins View Post
    You are missing an entry for Penaranda on Graph sheet
    You only have 1 GRO on Graph, but 2 on Data. Fix that and it should work
    Thank You. It works well now.

  20. #20
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to linked a certain cell when criteria is meet

    Im happy we got it resolved for you, even though it was a bit messy, and thanks for the feedback

+ 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] Count cell that meet a criteria and are not blank
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-16-2014, 05:56 PM
  2. Change Cell Values if value and value below meet certain criteria
    By drtandthewomen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-17-2014, 04:21 PM
  3. How to delete columns that meet one criteria AND does NOT meet the other?
    By lch93lily in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-06-2014, 09:53 AM
  4. Formula to Colour a cell if criteria meet
    By caavimak in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-09-2012, 03:14 AM
  5. Replies: 2
    Last Post: 06-16-2006, 04:45 PM

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