Game Points Bank Account

jgthtrotih

Well-known Member
Joined
Aug 28, 2009
Messages
568
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi All,
Excel Workbook
RSTUVWX
5Your PointsPoints Needed To Level UpCurrent LevelYour CreditWithdrawalDepositCredit
6
7
80You Need 18,000 Pts.IntermediateYour Credit is 0 Pts
911,5006,500BeginnerYour Credit is 0 Pts25004000
1010,4547,546BeginnerYour Credit is 454 Pts454
11125005,500BeginnerYour Credit is 1000 Pts200035001000
Sheet6


i have a "Game Points Bank Account" that keeps track of the points users earn or spend in the game...what i need help is creating a running total for the bank..ive tried everything nothing works..

(this is actually like a traditional bank account)

each player starts with 10,000 points

*Row 8 is the only row to have formulas*

*Rows 9-11 are typed in to show my desired results*

Here is the point value "Ranking System" for Column T

Excel Workbook
AGAH
5Tier 1
6Beginner18000
7Beginner36000
8Beginner54000
9Intermediate72000
10Intermediate90000
11Intermediate108000
12
13Tier 2
14Advanced126000
15Advanced144000
16Advanced162000
17Expert180000
18Expert198000
19Expert216000
20
21Tier 3
22Elite234000
23Elite252000
24Elite270000
25Superior288000
26Superior306000
27Superior325000
Sheet6


Please ask for further questions!

Thanks!
 
Another step forward. "T" column.

And a question. Column "S", is the idea that it counts off to the next numeric level, or from Beginner to Intermediate etc?
Excel Workbook
TAAAB
50Beginner
618000Beginner
736000Beginner
8Intermediate54000Beginner
9Beginner72000Intermediate
10Beginner90000Intermediate
11Intermediate108000Intermediate
12Beginner126000Advanced
13Beginner144000Advanced
14Beginner162000Advanced
15Beginner180000Expert
16198000Expert
17216000Expert
18234000Elite
19252000Elite
20270000Elite
21288000Superior
22306000Superior
23325000Superior
Sheet1
Excel 2007
Cell Formulas
RangeFormula
T8=VLOOKUP(R8,$AA$5:$AB$23,2,TRUE)
T9=VLOOKUP(R9,$AA$5:$AB$23,2,TRUE)
T10=VLOOKUP(R10,$AA$5:$AB$23,2,TRUE)
T11=VLOOKUP(R11,$AA$5:$AB$23,2,TRUE)
T12=VLOOKUP(R12,$AA$5:$AB$23,2,TRUE)
T13=VLOOKUP(R13,$AA$5:$AB$23,2,TRUE)
T14=VLOOKUP(R14,$AA$5:$AB$23,2,TRUE)
T15=VLOOKUP(R15,$AA$5:$AB$23,2,TRUE)
 
Last edited:
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Snow,

I'm getting N/A error?

Probably should mention i'm using Excel 2003

Thanks!
 
Upvote 0
Snow,

I'm getting N/A error?

Probably should mention i'm using Excel 2003

Thanks!
Mmm...

Make sure that you place the data in the appropriate place. Or change so it matches. The data is expected to be in AA5:AB23.

It should work the same in '03, though I happen to be on '07 ATM.
Also column S, counting towards next point level or just Beginner, Intermediate etc?
 
Upvote 0
Snow,

i didnt have the 0 value i started at 18,000

but i added it now that works. perfect!

step 3?

Thanks!
 
Upvote 0
I think I might have cracked it. I'm feeling oddly smug and satisfied.

Excel Workbook
RSTU
872001You need 17999 Pts.IntermediateYour Credit is 0 Pts
910000You need 8000 Pts.BeginnerYour Credit is 0 Pts
1018000You Have Enough Pts. Pts.BeginnerYour Credit is 0 Pts
1172000You Have Enough Pts. Pts.IntermediateYour Credit is 0 Pts
Sheet1
Excel 2007
Cell Formulas
RangeFormula
S8=IF(R8<=VLOOKUP(R8,$AA$5:$AB$23,1),"You Have Enough Pts.","You need " & INDEX($AA$5:$AB$23,MATCH(R8,$AA$5:$AA$23,1)+1,1)-R8) & " Pts."
S9=IF(R9<=VLOOKUP(R9,$AA$5:$AB$23,1),"You Have Enough Pts.","You need " & INDEX($AA$5:$AB$23,MATCH(R9,$AA$5:$AA$23,1)+1,1)-R9) & " Pts."
S10=IF(R10<=VLOOKUP(R10,$AA$5:$AB$23,1),"You Have Enough Pts.","You need " & INDEX($AA$5:$AB$23,MATCH(R10,$AA$5:$AA$23,1)+1,1)-R10) & " Pts."
S11=IF(R11<=VLOOKUP(R11,$AA$5:$AB$23,1),"You Have Enough Pts.","You need " & INDEX($AA$5:$AB$23,MATCH(R11,$AA$5:$AA$23,1)+1,1)-R11) & " Pts."
T8=VLOOKUP(R8,$AA$5:$AB$23,2,TRUE)
T9=VLOOKUP(R9,$AA$5:$AB$23,2,TRUE)
T10=VLOOKUP(R10,$AA$5:$AB$23,2,TRUE)
T11=VLOOKUP(R11,$AA$5:$AB$23,2,TRUE)
U8=IF(X8>$Q$23,"You Are Credited With "&TEXT(X8-$Q$23,"#,##0")&" Pts","Your Credit is 0 Pts")
U9=IF(X9>$Q$23,"You Are Credited With "&TEXT(X9-$Q$23,"#,##0")&" Pts","Your Credit is 0 Pts")
U10=IF(X10>$Q$23,"You Are Credited With "&TEXT(X10-$Q$23,"#,##0")&" Pts","Your Credit is 0 Pts")
U11=IF(X11>$Q$23,"You Are Credited With "&TEXT(X11-$Q$23,"#,##0")&" Pts","Your Credit is 0 Pts")



Also use the following in the sheet code (slightly modified from before)
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Select Case Target.Column
Case 22
Target.Offset(0, -4).Value = Target.Offset(0, -4).Value - Target.Value
Case 23
Target.Offset(0, -5).Value = Target.Offset(0, -5).Value + Target.Value
Case 24
Target.Offset(0, -6).Value = Target.Offset(0, -6).Value + Target.Value
Case Else
Exit Sub
End Select
End Sub

There's a reference to Q23 that I don't know where it comes from which have left in the cells in column U.
 
Upvote 0
Snow,

Everything is working so far

i changed the "code" what does it do now?

Q23= 10,000 the default start value

Thanks!
 
Upvote 0
Snow,

Everything is working so far

i changed the "code" what does it do now?

Q23= 10,000 the default start value

Thanks!
I added a check so it won't crash if you modify several cells at once in the "edit area". I noticed that if I deleted several values in V,W,X it would crash. As deleting values is "changing them to nothing" it would still run the update code just that adding or subtracting 0 won't show anything.
As we are looking at column numbers apparently it gives a faulty value if you have several selected simultaneously.
It shouldn't be possible to put values simultaneously in several cell though so it should be safe that way.
 
Upvote 0
Snow,

oh o ok.

when Column R is blank or has a value of "0"...how do i get Column S to be blank?

Than when they have excatly the amount ie 18,000 than it displays "You Have Enough Pts. Pts" how to take off the extra "Pts."

Other than that i think im set to go..all give it another once over.

Thanks!
 
Upvote 0
This should fix both issues. There was a ")" that was placed incorrectly so ALL strings were amended with "Pts." and not just the ones with number. I added an if check for "0" on R, so it won't run S if R is 0. Of course this assumes that you aren't getting people who when playing, or whatever, who hit negatives. Is this something that needs to be considered as well? I think the S column will error if values become negative because the VLOOKUP requires the value to be present in the table. That is the reason for 0 being the first value and not 18000.
Excel Workbook
S
8You Have Enough Pts.
Sheet1
Excel 2007
Cell Formulas
RangeFormula
S8=IF(R8=0," ",IF(R8<=VLOOKUP(R8,$AA$5:$AB$23,1),"You Have Enough Pts.","You need " & INDEX($AA$5:$AB$23,MATCH(R8,$AA$5:$AA$23,1)+1,1)-R8 & " Pts."))
 
Upvote 0
This should fix both issues. There was a ")" that was placed incorrectly so ALL strings were amended with "Pts." and not just the ones with number. I added an if check for "0" on R, so it won't run S if R is 0. Of course this assumes that you aren't getting people who when playing, or whatever, who hit negatives. Is this something that needs to be considered as well? I think the S column will error if values become negative because the VLOOKUP requires the value to be present in the table. That is the reason for 0 being the first value and not 18000.
The Negative values in column R is not a problem as there aren't any as of right now but might be in the future..so i think if it can be addressed..lets please address it. please

Thanks!
 
Upvote 0

Forum statistics

Threads
1,221,579
Messages
6,160,616
Members
451,658
Latest member
NghiVmexgdhh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top