Combining to IF AND statements

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
625
Office Version
  1. 2019
Platform
  1. Windows
=IF(AND(O58="EUR", P58="GBP"),Q58*Q41,0)

=IF(AND(O58="USD", P58="GBP"),Q58*Q38,0)

I would like to combine these two formulas. Whenever I try I seem to get the syntax wrong. Can anyone help? Thanks.

Dan
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Maybe try:

=IF(AND(O58="EUR", P58="GBP"),Q58*Q41,IF(AND(O58="USD", P58="GBP"),Q58*Q38,0))

or:

=IF(P58="GBP",if(O58="EUR",Q58*Q41,IF(O58="USD",Q58*Q38,0)),0)

Hope that helps.
 
Last edited:
Upvote 0
Try

=IF(AND(O58="EUR", P58="GBP"),Q58*Q41,IF(AND(O58="USD", P58="GBP"),Q58*Q38,0))
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,633
Members
452,933
Latest member
patv

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