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
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td=bgcolor:#FFC000]
Total
[/td][td=bgcolor:#FFC000]Gold[/td][td=bgcolor:#FFC000]Silver[/td][td=bgcolor:#FFC000]Copper[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td=bgcolor:#FFC000]
[/td][td]
1​
[/td][td]
1​
[/td][td]
98​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
3
[/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
4
[/td][td=bgcolor:#FFC000]Item Name[/td][td=bgcolor:#FFC000]Gold[/td][td=bgcolor:#FFC000]Silver[/td][td=bgcolor:#FFC000]Copper[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
5
[/td][td=bgcolor:#BDD7EE]Test Item 1[/td][td=bgcolor:#BDD7EE][/td][td=bgcolor:#BDD7EE][/td][td=bgcolor:#BDD7EE]
99​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
6
[/td][td]Test Item 2[/td][td][/td][td]
1​
[/td][td]
99​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
7
[/td][td=bgcolor:#BDD7EE]Test Item 3[/td][td=bgcolor:#BDD7EE][/td][td=bgcolor:#BDD7EE]
99​
[/td][td=bgcolor:#BDD7EE][/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Sheet1[/td][/tr][/table]
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

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