Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I insert a pop-up box to alert me when numbers are wrong?

8 views
Skip to first unread message

Mallymoo

unread,
Nov 11, 2009, 7:20:01 PM11/11/09
to
I would like to have a box pop-up to alert me when two numbers in my
spreadsheet do not match. Can somebody please let me know how this is done?

If that is not possible, I would like to insert a box control that when it
is clicked and the numbers do not match, it will colour them to alert me.

Cheers

Fred Smith

unread,
Nov 11, 2009, 7:39:03 PM11/11/09
to
Why not use conditional formatting?

Use a format of:
=a1<>a2
and color it, say, red

The cells which don't match will be highlighted in red

Regards,
Fred

"Mallymoo" <Mall...@discussions.microsoft.com> wrote in message
news:B0270726-5653-496C...@microsoft.com...

Gord Dibben

unread,
Nov 11, 2009, 8:06:25 PM11/11/09
to
Pop-up messages would involve VBA code.

Without code you could use Condtional Fomatting to color the cells when not
equal.

Assuming we're dealing with A1 and A2

Select A1 and Format>CF>Cell Value is: not equal to =A2

Format to a color.

Select A2 and Format>CF>Cell Value is: not equal to: =A1

Format to same color.


Gord Dibben MS Excel MVP

Dave Peterson

unread,
Nov 11, 2009, 10:24:59 PM11/11/09
to
I'd just use a cell that's in a prominent location.

And put a formula like:

=if('sheet 88'!a1='sheet 99'!a1,"","Two cells don't match message here!")

Format the cell in nice big bold red letters.

--

Dave Peterson

Dave Peterson

unread,
Nov 11, 2009, 10:26:57 PM11/11/09
to
With a bit of further thought, I wouldn't allow the users to mess up.

I'd just use a single cell and then the second cell (if I absolutely needed to
have two for some reason) would be:

=if('sheet 777'!a1="","",'sheet 777'!a1)

Try not to give me (the user) a chance to screw up--and I'll screw up less.

--

Dave Peterson

0 new messages