#1   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default If and Lookup

How can I do the following

If 'Sheet 1'A1:A20 = 'Sheet2'A1:A20 then return value from 'Sheet2'D1:D20
into 'Sheet1' D1:D20
--
KS
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default If and Lookup

Select Sheet1 D1:D20

now enter this formula
=IF(AND(A1:A20=Sheet2!A1:A20),Sheet2!D1:D20,"")

not just enter, use Ctrl + Shift + Enter

On Oct 22, 12:06*am, KS wrote:
How can I do the following

If 'Sheet 1'A1:A20 = 'Sheet2'A1:A20 then return value from 'Sheet2'D1:D20
into 'Sheet1' D1:D20
--
KS


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default If and Lookup

Hi,

Welcome to the world of array formula. You must follow the instruction on
how to enter the formula precisely.

Select D1 to D20 on sheet 1 and then paste this formula into the formula bar.

=IF(COUNTIF(A1:A20,Sheet2!A1:A20)=20,Sheet2!D1:D20 ,"")

Now very important hold down CTRL & Shift keys and tap enter. If you've done
it correctly then Excel will have put curly brackets around the formula {}.


Mike



"KS" wrote:

How can I do the following

If 'Sheet 1'A1:A20 = 'Sheet2'A1:A20 then return value from 'Sheet2'D1:D20
into 'Sheet1' D1:D20
--
KS

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Excel Discussion (Misc queries) 5 June 26th 09 09:15 PM
Lookup looks to the prior column if zero appears in the lookup col kenbquik Excel Discussion (Misc queries) 2 March 12th 09 03:41 AM
Matrix lookup/mulitple criteria lookup MarkFranklin Excel Discussion (Misc queries) 3 March 31st 08 10:15 AM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"