Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Trying to figure out IF formula

QHello all,

I have two sheets. Sheet1 contains about 4547 rows the sheet2 4645 rows.
Sheet 1 contains parts that are in sheet two so I'm trying to put a formula
that
if Sheet 1 colum E equals Sheet 2 column M, then put sheets 2 Column Q data
into Sheet 1 column K
I have put following formula in Sheet 1 column K
=IF(E:E='SHEET2'!M:M,'SHEET'!Q:Q,"no price")

This doesn't work right becuase sheet 1 has less records. Is it possible to
work around this?
Please advise.
Thanks for any help.
J


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Trying to figure out IF formula

Juan,

Your formula won't work as written. I corrected for the error in
"'SHEET2'!Q:Q" error and the results return 0. I don't think it has
anything to do with the difference in range dimensions.

This returns the value in Q1 if the match argument is met for single
cells:

=IF(E1=Sheet2!M1,Sheet2!Q1,"no price")

Are you trying to determine if a value in sheet 1 is also in sheet 2 or
match on identical rows??

Alan




Juan wrote:
QHello all,

I have two sheets. Sheet1 contains about 4547 rows the sheet2 4645 rows.
Sheet 1 contains parts that are in sheet two so I'm trying to put a formula
that
if Sheet 1 colum E equals Sheet 2 column M, then put sheets 2 Column Q data
into Sheet 1 column K
I have put following formula in Sheet 1 column K
=IF(E:E='SHEET2'!M:M,'SHEET'!Q:Q,"no price")

This doesn't work right becuase sheet 1 has less records. Is it possible to
work around this?
Please advise.
Thanks for any help.
J


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Trying to figure out IF formula

=IF(ISNA(VLOOKUP(E1,Sheet2!M:Q,5,FALSE)),"no
price",VLOOKUP(E1,Sheet2!M:Q,5,FALSE))

And drag down

Regards

Trevor


"Juan" wrote in message
...
QHello all,

I have two sheets. Sheet1 contains about 4547 rows the sheet2 4645 rows.
Sheet 1 contains parts that are in sheet two so I'm trying to put a
formula
that
if Sheet 1 colum E equals Sheet 2 column M, then put sheets 2 Column Q
data
into Sheet 1 column K
I have put following formula in Sheet 1 column K
=IF(E:E='SHEET2'!M:M,'SHEET'!Q:Q,"no price")

This doesn't work right becuase sheet 1 has less records. Is it possible
to
work around this?
Please advise.
Thanks for any help.
J




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 268
Default Trying to figure out IF formula

=IF(ISNA(VLOOKUP(E1,Sheet2!$M$1:$Q$4645,5,FALSE)), "",VLOOKUP(E1,Sheet2!$M$1:$Q$4645,5,FALSE)) and copy down

"Juan" wrote:

QHello all,

I have two sheets. Sheet1 contains about 4547 rows the sheet2 4645 rows.
Sheet 1 contains parts that are in sheet two so I'm trying to put a formula
that
if Sheet 1 colum E equals Sheet 2 column M, then put sheets 2 Column Q data
into Sheet 1 column K
I have put following formula in Sheet 1 column K
=IF(E:E='SHEET2'!M:M,'SHEET'!Q:Q,"no price")

This doesn't work right becuase sheet 1 has less records. Is it possible to
work around this?
Please advise.
Thanks for any help.
J


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Trying to figure out IF formula

Hello Trevor/Alan/Kassie,
thanks alot for the help. I tested the revised formula and seems to be
working.

Really appreciated the quick replies.

All of you have a great weekend.

J

"Trevor Shuttleworth" wrote:

=IF(ISNA(VLOOKUP(E1,Sheet2!M:Q,5,FALSE)),"no
price",VLOOKUP(E1,Sheet2!M:Q,5,FALSE))

And drag down

Regards

Trevor


"Juan" wrote in message
...
QHello all,

I have two sheets. Sheet1 contains about 4547 rows the sheet2 4645 rows.
Sheet 1 contains parts that are in sheet two so I'm trying to put a
formula
that
if Sheet 1 colum E equals Sheet 2 column M, then put sheets 2 Column Q
data
into Sheet 1 column K
I have put following formula in Sheet 1 column K
=IF(E:E='SHEET2'!M:M,'SHEET'!Q:Q,"no price")

This doesn't work right becuase sheet 1 has less records. Is it possible
to
work around this?
Please advise.
Thanks for any help.
J





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
can't figure out the formula Tbar Excel Discussion (Misc queries) 3 April 2nd 09 06:31 PM
Can not figure out appropriate formula bif Excel Discussion (Misc queries) 1 March 10th 09 02:43 AM
FORMULA TO FIGURE AGE tjsmags Excel Worksheet Functions 6 July 18th 07 06:41 AM
Can anyone figure a formula for this?? Please? Bianca Excel Worksheet Functions 2 July 11th 06 06:11 PM
Cant figure out formula? oxicottin Excel Worksheet Functions 5 February 21st 06 10:58 PM


All times are GMT +1. The time now is 08:51 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"