Return the correct value that matches criteria

GMC The Macro Man

Board Regular
Joined
Mar 23, 2023
Messages
85
Office Version
  1. 2021
Platform
  1. Windows
Hello everyone,

I need to return a value based on it's criteria from 1 of 2 data sheets.
In the "REPORT" tab on the attached spreadsheet, I need cell "D3" to return a Value based on the Region.
If the Region equals "North" or "South", then I want to return the value in "C2" from DATA 1 tab.
If the region equals "East" or "West", then I want to return the value in "C2" form DATA 2 tab
Is there an easy formula for this?
TIA
GMC

Book1
ABCD
1
2MonthRegionSales
3JulyNorth
4
Report


Book1
ABC
1CodeRegionSales
2Data 1North£250,000
Data 1


Book1
ABC
1NameRegionSales
2Data 2West£300,000
3
Data 2
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe something like this:
Excel Formula:
=IF(OR(C3="North",C3="South"),'Data 1'!C2,'Data 2'!C2)
 
Upvote 1
Solution

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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