Help with totaling up currency for a game

reaktorblue

Board Regular
Joined
Aug 8, 2007
Messages
87
Office Version
  1. 365
Platform
  1. Windows
I'm trying to make a spreadsheet as a shopping list within a game I'm playing in my spare time but for the life of me, I'm not able to figure out how to add up the values such that it correctly matches the game's values.

100 copper = 1 silver
100 silver = 1 gold

An example can be found below. Is there a way to tally up those columns, so that the total's add up properly?

Excel 2016 (Windows) 64 bit
A
B
C
D
1
Total
GoldSilverCopper
2
1​
1​
98​
3
4
Item NameGoldSilverCopper
5
Test Item 1
99​
6
Test Item 2
1​
99​
7
Test Item 3
99​
Sheet: Sheet1
 
Last edited:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
try this?


Book1
ABCD
1TotalGoldSilverCopper
21198
3
4Item NameGoldSilverCopper
5it199
6it2199
7it399
81.1981.9898
Sheet1
Cell Formulas
RangeFormula
B2=ROUNDDOWN(B8,0)
B8=(SUM(D5:D7)*0.001)+(SUM(C5:C7)*0.01)+SUM(B5:B7)
C2=ROUNDDOWN(C8,0)
C8=(B8-B2)*10
D2=ROUNDDOWN(D8,0)
D8=(C8-C2)*100
 
Upvote 0
This doesn't appear to work properly unless I did something wrong, which is entirely possible! Below is an example with only one item price of 99 silver. The expected total should be 99 silver however, the actual result appears to be 9 silver 90 copper


Excel 2016 (Windows) 64 bit
ABCD
1TotalGoldSilverCopper
20990
3
4Item NameGoldSilverCopper
5it199
6it2
7it3
80.999.990
Sheet2
Cell Formulas
RangeFormula
B2=ROUNDDOWN(B8,0)
B8=(SUM(D5:D7)*0.001)+(SUM(C5:C7)*0.01)+SUM(B5:B7)
C2=ROUNDDOWN(C8,0)
C8=(B8-B2)*10
D2=ROUNDDOWN(D8,0)
D8=(C8-C2)*100
 
Last edited:
Upvote 0
So, I'm able to count the total number of copper based on each lines gold, silver, and copper with the formula in C3. Is there a way to convert the total copper into something, such that the "10200" in C3 would display 1g 2s 0c?

I've seen several similar formulas that look promising but they end up failing. Any ideas on how this could be accomplished?


Excel 2016 (Windows) 64 bit
ABCD
1Total
2ItemsAmountCopper
3410200
4
5Item NameGoldSilverCopper
6Test Item 199
7Test Item 21
8Test Item 31
9Test Item 41
Sheet1
Cell Formulas
RangeFormula
A3=COUNTA(tblItems[Item Name])
C3=SUM(tblItems[Copper],(tblItems[Silver]*100),(tblItems[Gold]*10000))
 
Last edited:
Upvote 0
How about


Book1
ABCD
1TotalGoldSilverCopper
21198
3
4Item NameGoldSilverCopper
5Test Item 199
6Test Item 2199
7Test Item 399
80100198
Form
Cell Formulas
RangeFormula
B2=MOD(B8,100)+INT((C8*100+D8)/10000)
B8=SUM(B5:B7)
C2=MOD(C8,100)+INT(D8/100)
C8=SUM(C5:C7)
D2=MOD(D8,100)
D8=SUM(D5:D7)
 
Upvote 0
This one seems to work right up until something is 100 gold or more. As an example, if Test Item was 104 gold, it only displays 4
 
Upvote 0
I wasn't thinking.
The formula in B2 should be
=B8+INT((C8*100+D8)/10000)
 
Upvote 0
Outstanding! I think this is working now! Thank you so much, I really appreciate the help!!
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,167
Members
448,554
Latest member
Gleisner2

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