Clear Cell Based on Another Cell Value

AKMAKM

New Member
Joined
Jan 13, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I have two values in cell (C19) changing automatically when the value change in cell ( G2) in sheet named (REPORT CARD)

The values of (C19) is 900 and 1000

Im trying to Clear a value and text in "A16:J16" if the value of Cell (C19)= 900 and bring it back (text and furomulas) as before in "A16:J16" when the value (C19)= 1000.

I need your help to provide me a VBA code for clear the values as stated, also if any possible, I need the code if I want to delete the Row instead and bring it back (with text and furomulas) as before

Thanks alot

Book1
ABCDEFGHIJ
1Roll No.ID NumberTermTerm 2
2Student NameClassYear2021
3
4SubjectsTerm 2
5Class room participat-ionPop up quizzesHomeworkMidterm ExamProjects & ResearchesFinal ExamSCOREGrade
6201015151030
7Technology0
8Language Arts0
9English0
10Mathematics0
11Science0
12Social Studies0
13Computer0
14Art0
15French0
16Health and Safety0
17
18TOTAL MARKSGRADEPOSITION
19OUT OFOUT OF
REPORT CARD
Cell Formulas
RangeFormula
C4C4=J1
I7:I16I7=C7+D7+E7+F7+G7+H7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J7:J16Cell Valuetop 10% valuestextNO
J7:J16Other TypeColor scaleNO
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
It is formula in relation with Class cell (G2)
=VLOOKUP($H$17,Class!B9:C21,2,FALSE)

For more clarification, I have 2 student class (Grade 1 & Grade2), occupied the cell (G2).
If the class name changed (G2) from Grade 1 to Grade 2, then the cell of (out of): (C19) will be changed automatically from 900 to 1000
Grade 1 = 900 Mark
Grade 2 = 1000 mark

Hence, I want to hide/unhide row according to output of C19.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top