DeepuSultan
New Member
- Joined
- Feb 18, 2021
- Messages
- 13
- Office Version
- 365
- Platform
- Windows
I have this formula for two months, and need to extend it for 12 months. It's already long, how to shorten it for 12 months?
The values are stored in separate tabs e.g. "Jan 24 Rate"
=IF(D1="","N/A",IF(MONTH(D1)=1,IF(G1="USD",O1,O1/VLOOKUP(G1,'Jan 24 Rate'!$B$2:$C$128,2,0)),IF(MONTH(D1)=2,IF(G1="USD",O1,O1/VLOOKUP(G1,'Feb 24 Rate'!$B$2:$C$128,2,0)))))
The values are stored in separate tabs e.g. "Jan 24 Rate"
=IF(D1="","N/A",IF(MONTH(D1)=1,IF(G1="USD",O1,O1/VLOOKUP(G1,'Jan 24 Rate'!$B$2:$C$128,2,0)),IF(MONTH(D1)=2,IF(G1="USD",O1,O1/VLOOKUP(G1,'Feb 24 Rate'!$B$2:$C$128,2,0)))))