+ Reply to Thread
Results 1 to 5 of 5

If cell in one sheet1 turns green, cell in sheet2 recalculates total

  1. #1
    Registered User
    Join Date
    02-04-2019
    Location
    Australia
    MS-Off Ver
    MSOffice 2010
    Posts
    25

    If cell in one sheet1 turns green, cell in sheet2 recalculates total

    hey everyone,

    i doubt this is possible

    but is there way to to have sheet 1 AE3 influence sheet2 P4:Y4 and clear out anything listed under Low risk Breach.

    i was thinking that if sheet1 AE3 turn green, is it possible to clear sheet2 P4:Y4 of any data

    back story: Basically data in Sheet 1 are the amount of times that individual breach happened through 25 audits, and Sheet 2 is just counting the number of breaches them selves. so 1 breach could have occurred in 25 audits for that company (E.g. in 'Sheet2' - technical error 7 ( is one breach company A received), but in 'Sheet1' - technical error 7 occurred 25 times in company A

    so bascially if there is 3 or less in Sheet1 AE3, i would like everything in sheet 2 P3:Y3 (low risk area) to clear data and recalculate Sheet2 Z3 (total) based on left over data.

    example attached

    ive also added a dummy solution if anyone is confused- hard for me to explain without showing what is suppose to happen

    thankyou again



    -
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: If cell in one sheet1 turns green, cell in sheet2 recalculates total

    Try:
    In P3 to Y5: =IF(VLOOKUP($A3,Sheet1!$A3:$AE5,31,0)<=3,"",IF(Sheet1!P3=0,"",Sheet1!P3))
    In Z3 and down: =COUNTIF($B3:$Y3,">0")
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    02-04-2019
    Location
    Australia
    MS-Off Ver
    MSOffice 2010
    Posts
    25

    Re: If cell in one sheet1 turns green, cell in sheet2 recalculates total

    Thanks! ive tried it but its not giving me the right output. i thought of another way to to generate the desired outcome.

    how about a formula saying " only count this range (M3:AJ3) if this cell (AP16) is 3 or less?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-04-2019
    Location
    Australia
    MS-Off Ver
    MSOffice 2010
    Posts
    25

    Re: If cell in one sheet1 turns green, cell in sheet2 recalculates total

    this probably makes more sense

    answer to populate in AM3

    only count (M3:AJ3), if (AP16) is more than 3

    but if AP16 is 3 or less only count M3:Z3

  5. #5
    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
    52,929

    Re: If cell in one sheet1 turns green, cell in sheet2 recalculates total

    You cannot use a formula to clear data in other cells (or to make any changes to another cell). Formulas only work on the cell they reside in. You would need VBA for this.
    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

+ 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. Sheet1:CELL 1 = Sheet2:CELL 2 = Sheet3:CELL 3 and vice versa
    By djibbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2018, 10:15 PM
  2. Replies: 3
    Last Post: 09-24-2015, 08:20 AM
  3. [SOLVED] If cell value on Sheet1 not found on Sheet2 copy row to Sheet2
    By Yxx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2013, 04:15 AM
  4. Replies: 1
    Last Post: 12-30-2012, 07:52 PM
  5. [SOLVED] Cell That Recalculates Total Based On Percentage Input
    By Microsoftnovice in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-17-2012, 11:13 AM
  6. Macro to copy range of cell from sheet1 to sheet2 based on a cell value in sheet2
    By drgwhizz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2012, 10:39 AM
  7. IF Sheet1 Cell A2 = value, THEN copy Sheet1 Row 2 to Sheet2 Row 2....?
    By dan1980 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2009, 10:28 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