Two Way Conditional cells possibility?

Renarian

New Member
Joined
Sep 24, 2023
Messages
44
Office Version
  1. 2007
Platform
  1. Windows
Macro Skill Sheet Test.xlsm
ABCDEFGHIJKLM
1Anger
2TotalPrecise HitterHard Precise HitterStunning Strike
30000
4Hard Hitter0% Crit Chance0% Crit DMG0% Extra Stun
50Piercing ExpertPoison ExpertPoison Mastery
60Max Weapon DMG00 0
7Total Used0% Piercing DMG0% More Poison DMG0% Poison Crit Chance
80Blunt ExpertBleed ExpertBleed Mastery
9000
10Level0% Blunt DMG0% Bleed Dump DMG0% Bleed Dump Crit Chance
110Slashing ExpertHarder HitterBerserker
12000
130% Slashing DMG0Max Weapon DMG0% DMG [<25% HP]
Sheet1
Cell Formulas
RangeFormula
C3C3=C5+F3+F6+F9+I3+I6+I9+L3+L6+L9+F12+I12+L12
F4F4=(F3*0.3)
I4I4=(I3*2)
L4,C6L4=L3
F7,F13,F10F7=F6*3
I7I7=I6*8
L7,I13,L10L7=L6*2
A8A8=C3+C17+C31
I10I10=I9*6
A11A11=A8/4
L13L13=L12*5
Cells with Data Validation
CellAllowCriteria
C5Whole number<=3
C2Any value
I6Custom=AND(F6<>"",F9<>"",F12<>"",SUM(F6,F9,F12),I6<16,MOD(I6,1)=0)
F6Custom=AND(C5<>"",C5=3,F6<31,MOD(F6,1)=0)
L3Custom=AND(I3<>"",I3>7,L3<11,MOD(L3,1)=0)
I3Custom=AND(F3<>"",F3>7,I3<31,MOD(I3,1)=0)
F3Custom=AND(C5<>"",C5=3,F3<21,MOD(F3,1)=0)
L6Custom=AND(I6<>"",I6>9,L6<21,MOD(L6,1)=0)
L9Custom=AND(I9<>"",I9>9,L9<21,MOD(L9,1)=0)
A10Any value
A7Any value
I9Custom=AND(F6<>"",F9<>"",F12<>"",SUM(F6,F9,F12),I9<16,MOD(I9,1)=0)
I12Custom=AND(F6<>"",F9<>"",F12<>"",SUM(F6,F9,F12),I12<11,MOD(I12,1)=0)
F12Custom=AND(C5<>"",C5=3,F12<31,MOD(F12,1)=0)
F9Custom=AND(C5<>"",C5=3,F9<31,MOD(F9,1)=0)
L12Custom=AND(I12<>"",I12>4,L12<21,MOD(L12,1)=0)


Got a lot of help from Dreid1011 on my work project and finished that thanks to them! :) Now using what I learned from that I am trying to create this. I tried a few things but reverted to this again because it works mostly how I want it. What I mean to use as an example: if L6 has a value of at least 1 I don't want someone going back to I6 and changing to a lesser value than the condition value to allow enteries into L6. Is it possible to do this?
 
I understand. I will also add that there is a macro button that adds 0 to all entry cells. It simply adds 0 from right to left to reset the cells. This is why there is never a blank cell in the sheet. This is why I was wondering about switching section I6>=L6 to:
L6=0 other possibility
L6<>0
to satisfy the condition of 0 always being there unless a user is able to enter a value into L6 in which case once a value is there I6 can no longer have data be input into it? Would either of those 2 solutions work better or am I way off base? I am going to try both myself after I post here. I am just going to change that section. I will post the results and if it works ask anyone to please cut out anything that is not necessary.
my L6=0 worked as I needed!

So the formula for that cell is:
=OR(AND(L6="",F6<>"",F9<>"",F12<>"",SUM(F6,F9,F12),I6<16,MOD(I6,1)=0),AND(L6=0,F6<>"",F9<>"",F12<>"",SUM(F6,F9,F12),I6<16,MOD(I6,1)=0))

This is rather cumbersome but I will do it for all cells if need be, but I was wondering if there were any extraneous bits of information in formula that could be trimmed out? Let me know according to conditions listed below which section or sections can be trimmed, why and what the removed section does if you can.

Full conditions I need:
1. All cells need to be whole positive numbers (integers?) entered
2. No blank input cells as all will have at least 0 in cell but to check all related cells anyway to make sure it is not blank
3. All cells will have a ceiling value it must be under for data input to stay
4. Like I6 most cells have a floor value a previous cell(s) must exceed for data input to stay
5. Like I6 most cells have a cell(s) further up the chain that will check to see if the value is default of 0 for data input to stay
6. Macro Button created to enter a value of 0 from the furthest right cells going to the left still works. (Reset button)

Also protecting the worksheet while unchecking the protect cell does this protect the data validation and allow the cell to be used or is there a different way to go about this?
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I just found something that works even better and simpler! Just by adding cell=0 to an AND equation does what I need. Example:
=AND(F6<>"",F9<>"",F12<>"",SUM(F6,F9,F12),I6<16,MOD(I6,1)=0) <---- The formula in I6
changes to
=AND(F6<>"",F9<>"",F12<>"",SUM(F6,F9,F12),I6<16,MOD(I6,1)=0,L6=0)

This locks the cell value until L6 is put back to 0 so a user can not bypass the need to have the correct values in all input cells. The last question I also answered by locking the sheet myself and trying it out.
Did answer it myself in the end BUT! had a lot of helpful nudges to try different things out. :)

Thanks!
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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