-
Notifications
You must be signed in to change notification settings - Fork 0
Get cell currency
Pierlam-dev edited this page Mar 2, 2026
·
6 revisions
It's possible to get the currency from a cell, if the cell has it.
In the example below, the cell B2 contains: 120,00€
cellValue = proc.GetCellValue(excelSheet, "B2");
// cellValue.DoubleValue -> 120.00
// cellValue.Currency -> is set (not null)
// cellValue.Currency.Name= CurrencyName.Euro
// cellValue.Currency.Code= CurrencyCode.EUR
For now, all these currencies are managed:
public enum CurrencyName:
Euro
UsDollar
BritishPound
SwissFranc
JapaneseYen
SouthKoreanWon
AustralianDollar
CanadianDollar
ChineseYuan
NewZealandDollar
Bitcoin
public enum CurrencyCode:
EUR
USD
GBP
CHF
JPY
KWR
AUD
CAD
CNY
NZD
BTC
by Pierlam - March 2026