Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Conditional Formatting

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default Conditional Formatting

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Conditional Formatting

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Conditional Formatting

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default Conditional Formatting

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting a range with conditional formatting renie Excel Worksheet Functions 2 June 2nd 06 10:43 PM
conditional formatting glitches Kat Excel Discussion (Misc queries) 2 May 26th 06 08:16 PM
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
conditional formatting Rich Excel Discussion (Misc queries) 2 April 1st 06 10:27 AM
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 09:44 PM


All times are GMT +1. The time now is 06:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"