If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Recalculating headaches

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-08, 14:28
Perun Perun is offline
Registered User
 
Join Date: Feb 2008
Posts: 3
Recalculating headaches

I have what seems to be a pretty simple problem, but I don't know how to get arround it.

Basicaly I want to create a quiz type spreadsheet that will ask about a word in a language, and upon entering will check if the translation is good or not (kind of like those cards where you have a word in one language on one side and the translation on the other when you are teaching kids for example)

As a base I have 2 columns where the words and the appropriate translations are in (just 10 words for test purposes)

I used =INDIRECT("A"&RANDBETWEEN(1;10)) to get a random word from the list. (in the cell D9)

I type the translation into another cell, lets say it's D12.

I used =EXACT(D12;VLOOKUP(D9;A1:B7;2;0)) to compare what was typed in with the original translation in the table.

Problem is, that when I type in the translation into D12, upon hitting enter, excel recalculates the worksheet, so the value in D9 is not the one I was translating in the first place, thus the exact returns FALSE.

Is there a way to influence the recalculation process (except turning it off, which doesn't remove the problem). I want the value to stay fixed until it the check and only then change to a next one.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 08-07-08, 10:10
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy. Any time you use RAND or associated functions, XL will recalculate when completing any type of action, i.e. entering a value. So you will need a different function (don't think it will happen) or you will need to use VBA to get what you want, turning off Recalculation until you determine it is appropriate.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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