Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by fh_freese
at 2024-07-10 11:40:36
Point:500 Replies:15 POST_ID:828951USER_ID:11849
Topic:
Microsoft Excel Spreadsheet Software;;
Folks,
Below you will see in the formula bar an IF statement that is not getting what I would like.
Below you will see in the formula bar an IF statement that is not getting what I would like.
My objective is this:
If there's a #DIV/0! error in cell O6, in cell P6 I would like to do this:
Replace the #DIV/0! in cell O6 with "Error" and in P6 have a remark saying "Please refer to Remarks". If no #DIV/0! error in O6 then in P6 have a remark saying "OK"
Author: fh_freese replied at 2024-07-10 15:23:57
OK...now I understand and I like the idea of first providing data they can work with. I think I'll keep the Try Again forcing them to reenter the formula (of course they could simply change the values and it recalculates automatically, unless I disabled automatic recalc for each sheet. Then I would have to .......rats Martin! I'm making things hard for me. I'll have to rest on this.
Expert: MartinLiss replied at 2024-07-10 15:08:29
I know. My last two posts are just suggestions about what you could do when refreshing the sheet so that the data you put there would show up again after the user fooled around, left the sheet and came back, or clicked the TryAgain button. If however you were going to leave N6:N10 blank then my suggestions don't apply and in that case you might as well get rid of the TryAgain buttons.
Author: fh_freese replied at 2024-07-10 15:02:38
I accepted the second post, at this time.
Expert: MartinLiss replied at 2024-07-10 14:50:08
And instead of putting that code in the Activate event and the TryAgain sub change the Activate event to
Private Sub Worksheet_Activate() TryAgain ActiveSheet.Range("O6").SelectEnd Sub 1:2:3:4:
Expert: MartinLiss replied at 2024-07-10 14:44:40
Consider changing your Worksheet_Activate events to something like this (for the AVERAGE sheet).
Private Sub Worksheet_Activate()With Worksheets("Average") .Range("O6").ClearContents .Range("N6") = 8 .Range("N7") = 7 .Range("N8") = 9 .Range("N9") = 6 .Range("N10") = 10End WithActiveSheet.Range("O6").SelectEnd Sub 1:2:3:4:5:6:7:8:9:10:11:
Author: fh_freese replied at 2024-07-10 14:26:10
You're a good man Martin. This problem was just solved with my last post. I've decided to move away from the Correct/Incorrect.
However, I was preparing another post to you regarding printing we spoke of the other day.
However, I was preparing another post to you regarding printing we spoke of the other day.
Expert: MartinLiss replied at 2024-07-10 14:22:16
Try this formula
=IF(OR(O6="",O6=0), " ", IF(O6=AVERAGE(N6:N10),"Correct","Incorrect"))
=IF(OR(O6="",O6=0), " ", IF(O6=AVERAGE(N6:N10),"Correct","Incorrect"))
Author: fh_freese replied at 2024-07-10 12:22:19
My pleasure, however, I spoke a little early. I'm having a problem still but haven't figured out how to solve it yet
Expert: duncanb7 replied at 2024-07-10 12:19:08
Thanks for your points
Have a nice day
Duncan
Have a nice day
Duncan
Author: fh_freese replied at 2024-07-10 12:17:32
great job...thank you
Author: fh_freese replied at 2024-07-10 12:16:52
I think you all got it!
Assisted Solution
Expert: duncanb7 replied at 2024-07-10 11:55:01
166 points EXCELLENT
IFERROR(AVERAGE(N6:N10),"ERROR") putting on cell O6
and
IF (O6="ERROR","please refer to remark","OK") putting on cell P6
Duncan
and
IF (O6="ERROR","please refer to remark","OK") putting on cell P6
Duncan
Assisted Solution
Expert: Randy Poole replied at 2024-07-10 11:54:38
167 points EXCELLENT
Ok and for the 2nd part in P6 place
=IF(O6="Error","Please refer to Remarks","Ok")
=IF(O6="Error","Please refer to Remarks","Ok")
Expert: imnorie replied at 2024-07-10 11:50:57
You can't use a formula to place a value in another cell.
Accepted Solution
Expert: Randy Poole replied at 2024-07-10 11:50:55
167 points EXCELLENT
The first part should be:
=IFERROR(AVERAGE(N6:N10),"Error")
Try that and see if returns what your looking for
=IFERROR(AVERAGE(N6:N10),"Error")
Try that and see if returns what your looking for
