Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 101
Default Need help in formula - IF + Find + Vlookup

Hi,

I was trying to create a formula. But its not working out.

This is what exactly I need to do. If the cell A1 contains "Test" B1
has to give "Test". If A1 does not contain "Test", then VLOOKUP the
first 19 characters in sheet 2 and give the corresponding value in B1.

The formula I have given is:

=IF(FIND("Test",A1,1),"Test",VLOOKUP(LEFT(A1,19),' sheet
2'!$A$1:$B$250,2,))

What may be wrong in this?

-Dileep

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Need help in formula - IF + Find + Vlookup

=IF(A1="Test","Test",VLOOKUP(LEFT(A1,19),'sheet
2'!$A$1:$B$250,2,))

"Dileep Chandran" wrote:

Hi,

I was trying to create a formula. But its not working out.

This is what exactly I need to do. If the cell A1 contains "Test" B1
has to give "Test". If A1 does not contain "Test", then VLOOKUP the
first 19 characters in sheet 2 and give the corresponding value in B1.

The formula I have given is:

=IF(FIND("Test",A1,1),"Test",VLOOKUP(LEFT(A1,19),' sheet
2'!$A$1:$B$250,2,))

What may be wrong in this?

-Dileep


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 101
Default Need help in formula - IF + Find + Vlookup

Thanks !!

But in this case, B1 will return "Test" only if A1 is equal to "Test".

I need B1 to give "Test", if A1 contains the word "Test".

Say for example, B1 should return "Test" even if A1 is "HelloTest" or
"Test123".

Any more ideas?

-Dileep

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 101
Default Need help in formula - IF + Find + Vlookup

Sorry. A small change in the formula. It should read:

=IF(SEARCH("Test",A1,1),"Test",VLOOKUP(LEFT(A1,19) ,'sheet2'!$A$1:$B$250,2,))

-Dileep

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Need help in formula - IF + Find + Vlookup


Here is the formula:

IF(ISERROR(SEARCH("Test",A1,1)),VLOOKUP(LEFT(A1,19 ),Sheet2!$A$1:$B$250,2,),"Test")

Wanna More?

Throw some more complex situations!!!!!!!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 101
Default Need help in formula - IF + Find + Vlookup

Thank You Buddy !!!

It works cool.

-Dileep

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 Data in two seperate Spreadsheets Padraig Excel Worksheet Functions 6 June 28th 06 03:05 PM
VLOOKUP, SUM, OFFSET and IF formula all at once redb Excel Discussion (Misc queries) 1 February 15th 06 03:20 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
FIND FORMULA SIMILAR TO VLOOKUP FOR NON-ASCENDING VALUES Kir Excel Worksheet Functions 2 November 10th 05 09:39 PM
How do I use Range Names listed in a VLookup table in a formula? Essbasedvlpr32 Excel Worksheet Functions 3 December 15th 04 10:11 PM


All times are GMT +1. The time now is 09:05 AM.

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"