Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am putting together a worksheet where students have to enter formula to
calculate a times table, at the moment it looks like this; 1 2 3 4 5 1 2 3 4 5 going all the way to 10 in columns and rows. To calculate the correct number, they have to use a variety of mixed cell references. I want to be able to enter conditional formatting to make each cell change to a different colour if they use the exact formula, eg, = $A4*B$3, etc. So far I'm not having a lot of success as the conditional formatting does not seem to take any account of whether the $ sign is present or not. Can anyone please help, thanks. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200612/1 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Tazzy,
excel reads/calculates the cell refs factors for a certain result - with or without a $. Commonly used for productive formulation like the times table you mentioned. If you need to trace the input formula to have a - must $ - then you may need to view it, as a teacher if you are, Tools -view -formulas. Correction / checking of student work may need direct and visual check on its input. happy hoilidays... "Tazzy via OfficeKB.com" wrote: I am putting together a worksheet where students have to enter formula to calculate a times table, at the moment it looks like this; 1 2 3 4 5 1 2 3 4 5 going all the way to 10 in columns and rows. To calculate the correct number, they have to use a variety of mixed cell references. I want to be able to enter conditional formatting to make each cell change to a different colour if they use the exact formula, eg, = $A4*B$3, etc. So far I'm not having a lot of success as the conditional formatting does not seem to take any account of whether the $ sign is present or not. Can anyone please help, thanks. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200612/1 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Driller,
Thanks for your answer, and I agree, I will need to verify the exact formula they have put in. It is to be used as a homework exercise and I was going to lock and protect the sheet, apart from the blank cells where they have to enter the frmula. I was hoping that they would have to work at this, knowing that when they got the formula exact, the cell would change colour, and so they would then realise that they had got the formula correct. Any suggestions? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200612/1 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Tazzy,
You could try a macro on the worksheet. I checks if the answer is not correct, it is just a number is 24 for 8X3 or otherwise. You need to consider how you want to check the formulas but you just need to parse the szFormula string and consider whay you want to do. '============start========== Private Sub Worksheet_Change(ByVal Target As Range) Dim lRow As Long Dim lCol As Long Dim lAns As Long Dim rTable As Range Dim szFormula As String Application.EnableEvents = False Set rTable = ActiveSheet.Range("B2:K11") If Not Intersect(rTable, Target) Is Nothing Then szFormula = Target.Formula lRow = Target.Row lCol = Target.Column lAns = (lRow - 1) * (lCol - 1) If Target.Value < lAns Then Target.Interior.ColorIndex = 3 ' incorrect ans ElseIf szFormula = Target.Value Then Target.Interior.ColorIndex = 6 ' just a number Else Target.Interior.ColorIndex = 8 ' formula End If End If Application.EnableEvents = True End Sub '============end=========== This macro should be placed in the code for the specific worksheet. -- Hope this helps Martin Fishlock Please do not forget to rate this reply. "Tazzy via OfficeKB.com" wrote: Hi Driller, Thanks for your answer, and I agree, I will need to verify the exact formula they have put in. It is to be used as a homework exercise and I was going to lock and protect the sheet, apart from the blank cells where they have to enter the frmula. I was hoping that they would have to work at this, knowing that when they got the formula exact, the cell would change colour, and so they would then realise that they had got the formula correct. Any suggestions? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...tions/200612/1 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
as you mention, "I was hoping that they would have to work at this, knowing
that when they got the formula exact, the cell would change colour, and so they would then realise that they had got the formula correct." I suggest that its up to you to place the conditional format, on their workbook for checking purpose, when they are completed and submitted to you, You can ask the students that after they had made the times table, say in sheet1, they will create another table say,say in sheet2, wherein the formulas are in text, This can be done by [Find = then Replace with .= _ ] from the sheet2 text table, you can create the conditional format. But you may not share it to the students, otherwise- it will be a spoonfeed. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sorting a range with conditional formatting | Excel Worksheet Functions | |||
conditional formatting glitches | Excel Discussion (Misc queries) | |||
Keeping conditional formatting when sorting | Excel Discussion (Misc queries) | |||
conditional formatting | Excel Discussion (Misc queries) | |||
cannot use ISEVEN or ISODD functions in Conditional Formatting | Excel Worksheet Functions |