Look at data in 2 columns to give result in 3rd column

dgraham1962

New Member
Joined
Oct 15, 2021
Messages
8
Office Version
  1. 2013
Platform
  1. Windows
Hi All,

In sheet1 i have 4 columns and 57 rows.
1648782026238.png

in sheet2 i have data in columns C, D & E

1648782069445.png


what i need to do is have a formula in sheet1 example: D5 to look at sheet2 Column C AND D and if true enter E.

ie.. D5 is 0&1, C5 is 0&2, B5 is 0&3 and A5 is 0&4 (these are locations in the 1st image) so i look at sheet2 and if there are true values in columns C & D then enter column E.

formula in D5 would need the results in sheet1 to be C=0 and D=1 if true enter 470

hope this makes sense.

Regards
David
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hello David,

In D5 paste the following

=IF(AND(Sheet2!C1=0,Sheet2!D1=1)=TRUE,Sheet2!E1,"")

If true it returns E1 value, if not it will be an empty cell.

Hope that is what you wanted.

Jamie
 
Upvote 0

Forum statistics

Threads
1,215,014
Messages
6,122,697
Members
449,092
Latest member
snoom82

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