# LibreCalc- correspond few columns and rows across sheets

Hello, I’m Libre Calc newbie that never went beyond SUM function. I have a complex and specified problem- I don’t expect help, but if there is even a slight chance I’ll get it, it’s worth trying, so

I have three sheets:

• Governments revenues in domestic currency (sheetA),
• exchange rates- US\$ per national currency (sheetB),
• and a sheet where I need government revenues shown in \$dollars (sheetC).

SheetA has columns with countries and revenue type listed (central gov/general) and rows with years listed. XY positions are different countries revenues in domestic currency in exact year. I need each XY position to correspond with SheetB which has three columns: country name, year and corresponding exchange rate.

Now I need to match SheetA country name column and year row with SheetB country name and year columns in a way that revenue in domestic currency A is multiplied by exchange rate B then value is returned to required C cell.

Thus, SheetC is built like SheetA - two columns with country name and revenue type (central government/general) and one row with years, giving accurate SheetA XY positions. For curious- next I will compare 2000 private corporations and their factors with countries organisations in a scale of time, and try to make sense of their relative dynamics.

It was all about proper formula: =LOOKUP(REVENUE_DOLLAR.D\$1,REVENUE_DOMESTIC_CURRENCY.D\$1:REVENUE_DOMESTIC_CURRENCY.AU\$1,REVENUE_DOMESTIC_CURRENCY.D3:REVENUE_DOMESTIC_CURRENCY.AU3)*SUMIFS(EXCHANGE_RATES.\$D\$2:EXCHANGE_RATES.\$D\$10313,EXCHANGE_RATES.\$C\$2:EXCHANGE_RATES.\$C\$10313,D\$1,EXCHANGE_RATES.\$B\$2:EXCHANGE_RATES.\$B\$10313,\$B3)