Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default IF statement in excel

I need to create an IF statement that will;

Search all of row C: C: on worksheet 3 for a number that matches cell Y on
worksheet 1

Then pull the content of cell Z on sheet 3 and display it in a cell
designated on the same column as Cell Y

OR

Better yet using the SQL tool in Excel how can I merge 2 querys results
from 2 different databases combine the matching results then display them

Unfortunately there are 2 DBs that I require data from in which I need to
match the result list of both querys and include the relevant data. I can
match the data by the same part numbers that exist in both DBs


Thanks in advance
--
Neall
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default IF statement in excel

You don't say which cell in column Y on sheet 1 so this assumes Y1
Put this on sheet 3
=VLOOKUP(Sheet1!Y1,Sheet3!C1:Z1000,24)

Mike


"Neall" wrote:

I need to create an IF statement that will;

Search all of row C: C: on worksheet 3 for a number that matches cell Y on
worksheet 1

Then pull the content of cell Z on sheet 3 and display it in a cell
designated on the same column as Cell Y

OR

Better yet using the SQL tool in Excel how can I merge 2 querys results
from 2 different databases combine the matching results then display them

Unfortunately there are 2 DBs that I require data from in which I need to
match the result list of both querys and include the relevant data. I can
match the data by the same part numbers that exist in both DBs


Thanks in advance
--
Neall

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default IF statement in excel

Thanks seemed to of done the trick, one more questions, for the results that
dont have a value I am getting #NA how do I get rid of that?


--
Neall


"Mike H" wrote:

You don't say which cell in column Y on sheet 1 so this assumes Y1
Put this on sheet 3
=VLOOKUP(Sheet1!Y1,Sheet3!C1:Z1000,24)

Mike


"Neall" wrote:

I need to create an IF statement that will;

Search all of row C: C: on worksheet 3 for a number that matches cell Y on
worksheet 1

Then pull the content of cell Z on sheet 3 and display it in a cell
designated on the same column as Cell Y

OR

Better yet using the SQL tool in Excel how can I merge 2 querys results
from 2 different databases combine the matching results then display them

Unfortunately there are 2 DBs that I require data from in which I need to
match the result list of both querys and include the relevant data. I can
match the data by the same part numbers that exist in both DBs


Thanks in advance
--
Neall

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
If statement in excel siva Excel Discussion (Misc queries) 3 June 1st 10 12:58 PM
IF statement inside a SUMIF statement.... or alternative method Sungibungi Excel Worksheet Functions 3 December 4th 09 06:22 PM
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM


All times are GMT +1. The time now is 05:26 PM.

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

About Us

"It's about Microsoft Excel"