LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
 
Posts: n/a
Default combining a Vlookup and Mid formula

Searched the groups but can't find any examples.

The following formula works fine but I want to add a few things.

In cell B3
=IF('Base'!E7="",VLOOKUP($H3,OTIS!$BG:$BJ,4,FALSE) ,VLOOKUP($F3,OTIS!$R:$W,4,FALSE))


On the OTIS worksheet in columns BJ and W, I have cells with A123BC in
them.
I only want to return the MID of the cell.
=MID(BJ1,2,3) is what I want extracted.


Also, If H3 and F3 are both blank, the cell displays #N/A. When I want
the cell to show blank.
I've tried NOT(ISNA and nesting another IF, but just can't get it
right.


So what I'm trying to get is:
if E7="", lookup the mid 3 numbers from OTIS!column BJ, else lookup the
mid 3 numbers from OTIS!column W, and if both H3 and F3 are blank, then
supress the #na and show a blank.

 
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



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