Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kim Kim is offline
external usenet poster
 
Posts: 284
Default Incremental balance and progress bar

Hi
Trying to do a weakest link type game for kids.
There are 9 questions and a progress bar (thermometer type)
if question answer is correct £100 is added and the bar moves up a step. If
the answer is incorrect they lose £100 and the bar goes down 100.
I tried to set this up various ways using IF forrmula, then Macros attached
to a graphic button , and feeding into a conditional format cell shading to
increase the thermometer bar in steps. I got the conditional format to work
with a simple cell entry but can't figure how to progress it to do what I need
None work. I think it may need vB code which I know very little about. (or
a simple way to do it I don't know about!)
Could a kind person help me out?
Thanks
This is driving me nuts!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Incremental balance and progress bar

Let's say the questions are in A1:100; answers in B1:B100
In C1:C100 we have Y for correct and N for wrong (or someother code)
In D1 we have =COUNTIF(C1:C100,"Y")*100 to count correct answers and
multiply by 100
Then we need to make a 'thermometer chart' from the data in D1
See http://www.andypope.info/charts/thermometer.htm
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"kim" wrote in message
...
Hi
Trying to do a weakest link type game for kids.
There are 9 questions and a progress bar (thermometer type)
if question answer is correct £100 is added and the bar moves up a step.
If
the answer is incorrect they lose £100 and the bar goes down 100.
I tried to set this up various ways using IF forrmula, then Macros
attached
to a graphic button , and feeding into a conditional format cell shading
to
increase the thermometer bar in steps. I got the conditional format to
work
with a simple cell entry but can't figure how to progress it to do what I
need
None work. I think it may need vB code which I know very little about.
(or
a simple way to do it I don't know about!)
Could a kind person help me out?
Thanks
This is driving me nuts!



  #3   Report Post  
Posted to microsoft.public.excel.programming
Kim Kim is offline
external usenet poster
 
Posts: 284
Default Incremental balance and progress bar


Thanks that was great got it working but need 2 more jobs!
1. If the answer is wrong I need to subtract £100 tried nesting a function
but didn't work. a variation of If "N" then -100.
2. At any time the player can Bank their current total so this value is
stored in a cell labelled bank and the totals column is cleared haven't a
clue how to do that bit!
Thank you for your help
"Bernard Liengme" wrote:

Let's say the questions are in A1:100; answers in B1:B100
In C1:C100 we have Y for correct and N for wrong (or someother code)
In D1 we have =COUNTIF(C1:C100,"Y")*100 to count correct answers and
multiply by 100
Then we need to make a 'thermometer chart' from the data in D1
See http://www.andypope.info/charts/thermometer.htm
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"kim" wrote in message
...
Hi
Trying to do a weakest link type game for kids.
There are 9 questions and a progress bar (thermometer type)
if question answer is correct £100 is added and the bar moves up a step.
If
the answer is incorrect they lose £100 and the bar goes down 100.
I tried to set this up various ways using IF forrmula, then Macros
attached
to a graphic button , and feeding into a conditional format cell shading
to
increase the thermometer bar in steps. I got the conditional format to
work
with a simple cell entry but can't figure how to progress it to do what I
need
None work. I think it may need vB code which I know very little about.
(or
a simple way to do it I don't know about!)
Could a kind person help me out?
Thanks
This is driving me nuts!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default Incremental balance and progress bar

=(COUNTIF(C1:C100,"Y")-COUNTIF(C1:C100,"N"))*100
If neg values not allowed
=MAX(0,(COUNTIF(C1:C100,"Y")-COUNTIF(C1:C100,"N"))*100 )
Not sure about part two and it is late will look on Thursday
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"kim" wrote in message
...

Thanks that was great got it working but need 2 more jobs!
1. If the answer is wrong I need to subtract £100 tried nesting a function
but didn't work. a variation of If "N" then -100.
2. At any time the player can Bank their current total so this value is
stored in a cell labelled bank and the totals column is cleared haven't a
clue how to do that bit!
Thank you for your help
"Bernard Liengme" wrote:

Let's say the questions are in A1:100; answers in B1:B100
In C1:C100 we have Y for correct and N for wrong (or someother code)
In D1 we have =COUNTIF(C1:C100,"Y")*100 to count correct answers and
multiply by 100
Then we need to make a 'thermometer chart' from the data in D1
See http://www.andypope.info/charts/thermometer.htm
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"kim" wrote in message
...
Hi
Trying to do a weakest link type game for kids.
There are 9 questions and a progress bar (thermometer type)
if question answer is correct £100 is added and the bar moves up a
step.
If
the answer is incorrect they lose £100 and the bar goes down 100.
I tried to set this up various ways using IF forrmula, then Macros
attached
to a graphic button , and feeding into a conditional format cell
shading
to
increase the thermometer bar in steps. I got the conditional format to
work
with a simple cell entry but can't figure how to progress it to do what
I
need
None work. I think it may need vB code which I know very little about.
(or
a simple way to do it I don't know about!)
Could a kind person help me out?
Thanks
This is driving me nuts!






  #5   Report Post  
Posted to microsoft.public.excel.programming
Kim Kim is offline
external usenet poster
 
Posts: 284
Default Incremental balance and progress bar

Thanks that works great!
For the older kids I would like to make it harder and if they get a wrong
answer it will return to zero no matter how many they have got right
previously. I've tried tweaking the functions but no joy- the last bit of
banking the running total would be nice too.
Your help is really appreciated thanks

"Bernard Liengme" wrote:

=(COUNTIF(C1:C100,"Y")-COUNTIF(C1:C100,"N"))*100
If neg values not allowed
=MAX(0,(COUNTIF(C1:C100,"Y")-COUNTIF(C1:C100,"N"))*100 )
Not sure about part two and it is late will look on Thursday
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"kim" wrote in message
...

Thanks that was great got it working but need 2 more jobs!
1. If the answer is wrong I need to subtract £100 tried nesting a function
but didn't work. a variation of If "N" then -100.
2. At any time the player can Bank their current total so this value is
stored in a cell labelled bank and the totals column is cleared haven't a
clue how to do that bit!
Thank you for your help
"Bernard Liengme" wrote:

Let's say the questions are in A1:100; answers in B1:B100
In C1:C100 we have Y for correct and N for wrong (or someother code)
In D1 we have =COUNTIF(C1:C100,"Y")*100 to count correct answers and
multiply by 100
Then we need to make a 'thermometer chart' from the data in D1
See http://www.andypope.info/charts/thermometer.htm
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"kim" wrote in message
...
Hi
Trying to do a weakest link type game for kids.
There are 9 questions and a progress bar (thermometer type)
if question answer is correct £100 is added and the bar moves up a
step.
If
the answer is incorrect they lose £100 and the bar goes down 100.
I tried to set this up various ways using IF forrmula, then Macros
attached
to a graphic button , and feeding into a conditional format cell
shading
to
increase the thermometer bar in steps. I got the conditional format to
work
with a simple cell entry but can't figure how to progress it to do what
I
need
None work. I think it may need vB code which I know very little about.
(or
a simple way to do it I don't know about!)
Could a kind person help me out?
Thanks
This is driving me nuts!






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
incremental step Jim Excel Worksheet Functions 2 March 21st 09 07:45 PM
NEED Help - How to capture the Event's progress in Progress Bar Sriram Excel Programming 6 August 22nd 06 12:04 PM
incremental counter cynthiabryant Excel Worksheet Functions 4 April 3rd 06 05:15 PM
rent received/balance owed/running balance spreadsheet Quickbooks dummy Excel Discussion (Misc queries) 1 January 2nd 06 07:34 PM
INCREMENTAL MACRO Sam Excel Programming 1 September 17th 03 08:14 PM


All times are GMT +1. The time now is 11:32 PM.

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

About Us

"It's about Microsoft Excel"