#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default vlookup i think

Hello,

this is my scenario On sheet 1 i have a list of values in colum B that
represent account numbers, if the account number in Column B Sheet 1 appears
in the list of hold accounts on Sheet two, i want to return a value of 'Hold"
in column A of sheet 1. I can't seem to get the syntax or formual correct.
Any help would be greatly appreciated, if i can't get the formual to work i
will have to match it all manually and with 1200 l ines of data that is going
to hurt.

Thanks!!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default vlookup i think

Hi,

In column A of sheet 1 (say cell A2), you could use
=if(countif(Sheet2!$C$2:$C$500,B2)=1,"Hold","Rele ase")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"samantha" wrote in message
...
Hello,

this is my scenario On sheet 1 i have a list of values in colum B that
represent account numbers, if the account number in Column B Sheet 1
appears
in the list of hold accounts on Sheet two, i want to return a value of
'Hold"
in column A of sheet 1. I can't seem to get the syntax or formual
correct.
Any help would be greatly appreciated, if i can't get the formual to work
i
will have to match it all manually and with 1200 l ines of data that is
going
to hurt.

Thanks!!!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default vlookup i think

Hi,
I assumed that in Sheet2 account numbers are in column a so use this formula
in sheet 1 column a

=IF(SUMPRODUCT(--(B1=Sheet2!A1:A13))0,"Hold","")

if the account is not find will leave a blank

if this helps please click yes thanks

"samantha" wrote:

Hello,

this is my scenario On sheet 1 i have a list of values in colum B that
represent account numbers, if the account number in Column B Sheet 1 appears
in the list of hold accounts on Sheet two, i want to return a value of 'Hold"
in column A of sheet 1. I can't seem to get the syntax or formual correct.
Any help would be greatly appreciated, if i can't get the formual to work i
will have to match it all manually and with 1200 l ines of data that is going
to hurt.

Thanks!!!!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default vlookup i think

Yes you have to use Vlookup.

Have a look in the below example.

=VLOOKUP(lookup value,Table Array,Column Index Number,Range Lookup)

=VLOOKUP(Sheet1!B1,Sheet2!A:F,3,FALSE)

Lookup Value:-
Sheet1!B1 - Account No. in Sheet B1 cell

Table Array:-
Sheet2!A:F is the table array range.
Note that the range should start from the column on which the Account Number
is lying. (i.e.) if the Account Number in Sheet2 is in E Column then the
Table Array should start from Sheet2!E. Here i assumed that the account no
is in sheet2!A, so i have used sheet2!A:F

Column Index Number:-
3 - If the word "HOLD" lying in C Column Then you have to mention it as 3
because if you calculate from A Column to C Column it is 3rd Column. So we
have to mention it as 3.

Range Lookup:-
FALSE - False is the default Word and instead of False you can also use 0
also.

Finallly use If function to complete the formula:-

=IF(ISNA(VLOOKUP(Sheet1!B1,Sheet2!A:F,3,FALSE)),"" ,VLOOKUP(Sheet1!B1,Sheet2!A:F,3,FALSE))

If this post helps, Click Yes!

--------------------
(MS-Exl-Learner)
--------------------

"samantha" wrote:

Hello,

this is my scenario On sheet 1 i have a list of values in colum B that
represent account numbers, if the account number in Column B Sheet 1 appears
in the list of hold accounts on Sheet two, i want to return a value of 'Hold"
in column A of sheet 1. I can't seem to get the syntax or formual correct.
Any help would be greatly appreciated, if i can't get the formual to work i
will have to match it all manually and with 1200 l ines of data that is going
to hurt.

Thanks!!!!

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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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