Skip to content

Get cell currency

Pierlam-dev edited this page Mar 2, 2026 · 6 revisions

Get the currency from a cell

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

Clone this wiki locally