Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dmorri254
 
Posts: n/a
Default Formula Modification Help

Hello,

I need to modify the lookup formula below because what it now looks for has
the letters IM in front of the munbers. Example IM1780 where before they were
straight numbers. Example 4160048

I would like to say If (H3779,PSWRDREQ,2) is equal to IM....then only give
me the numbers to the right of the IM. Example 1780....

Can you plese help? The formula as it is now is:
=IF(ISERROR(VLOOKUP(H3779,PSWRDREQ,2,FALSE)),"",VL OOKUP(H3779,PSWRDREQ,2,FALSE))

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

=IF(ISNA(MATCH("IM" & H3779, PSWRDREQ, FALSE)), "", VLOOKUP("IM" &
H3779, PSWRDREQ, 2, FALSE))




In article ,
Dmorri254 wrote:

Hello,

I need to modify the lookup formula below because what it now looks for has
the letters IM in front of the munbers. Example IM1780 where before they were
straight numbers. Example 4160048

I would like to say If (H3779,PSWRDREQ,2) is equal to IM....then only give
me the numbers to the right of the IM. Example 1780....

Can you plese help? The formula as it is now is:
=IF(ISERROR(VLOOKUP(H3779,PSWRDREQ,2,FALSE)),"",VL OOKUP(H3779,PSWRDREQ,2,FALSE
))

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Do you mean?

=IF(ISERROR(VLOOKUP(H3779,PSWRDREQ,2,FALSE)),"",IF (LEFT(VLOOKUP(H3779,PSWRDR
EQ,2,FALSE),2)="IM",MID(VLOOKUP(H3779,PSWRDREQ,2,F ALSE),3,32),""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dmorri254" wrote in message
...
Hello,

I need to modify the lookup formula below because what it now looks for

has
the letters IM in front of the munbers. Example IM1780 where before they

were
straight numbers. Example 4160048

I would like to say If (H3779,PSWRDREQ,2) is equal to IM....then only

give
me the numbers to the right of the IM. Example 1780....

Can you plese help? The formula as it is now is:

=IF(ISERROR(VLOOKUP(H3779,PSWRDREQ,2,FALSE)),"",VL OOKUP(H3779,PSWRDREQ,2,FAL
SE))



  #4   Report Post  
Dmorri254
 
Posts: n/a
Default

Hmm...this approach did not work....lets see if I can be more clear....I need
it to say If the number is IM whatever, ignore the IM and just give me the
numbers...

Does this help? Thank you so much...

David

"Bob Phillips" wrote:

Do you mean?

=IF(ISERROR(VLOOKUP(H3779,PSWRDREQ,2,FALSE)),"",IF (LEFT(VLOOKUP(H3779,PSWRDR
EQ,2,FALSE),2)="IM",MID(VLOOKUP(H3779,PSWRDREQ,2,F ALSE),3,32),""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dmorri254" wrote in message
...
Hello,

I need to modify the lookup formula below because what it now looks for

has
the letters IM in front of the munbers. Example IM1780 where before they

were
straight numbers. Example 4160048

I would like to say If (H3779,PSWRDREQ,2) is equal to IM....then only

give
me the numbers to the right of the IM. Example 1780....

Can you plese help? The formula as it is now is:

=IF(ISERROR(VLOOKUP(H3779,PSWRDREQ,2,FALSE)),"",VL OOKUP(H3779,PSWRDREQ,2,FALSE))




  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Perhaps


=IF(ISNA(MATCH(--MID(H3779,1+2*(LEFT(H3779)="IM"),255),PSWRDREQ,0)) ,"",
VLOOKUP(--MID(H3779,1+2*(LEFT(H3779,2)="IM"),255),PSWRDREQ,2 ,FALSE))

This assumes that H3779 may or may not be prefixed with IM, and that
your lookup range is numeric. 255 is just a big number

In article ,
Dmorri254 wrote:

Hmm...this approach did not work....lets see if I can be more clear....I need
it to say If the number is IM whatever, ignore the IM and just give me the
numbers...

Does this help? Thank you so much...

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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM
Paste is is copying in formula, but display is wrong. Matt Excel Discussion (Misc queries) 2 December 7th 04 08:37 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


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