LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Using VLOOKUP, IF and RIGHT functions together

Oh great ones,
Where to begin. I want to combine IF to test what RIGHT returns and based
on the answer, point it to VLOOKUP to return a cell content (which is a long,
complicated path).

In English, IF (right(cell, 3) returns "HPT", then VLOOKUP (cell with P&L#,
Security!PTSec,2, FALSE), (if (right(cell,3) returns "HFT", then Vlookup
(cell with P&L#, Security!FTSec, 2, FALSE), IF (right(a2, 1) returns C... etc.

I want to test for HPT, HFT and C to return separate strings and everything
else should return the same string. I'm thinking there's a way to nest IF,
RIGHT and VLOOKUP to achieve this but I can't seem to make it work. I've
seen Index and Match (which I've never used) which might be the way to go but
the biggest issue I have is I need to figure out if they are PT, FT or C from
the end of a string.

Please let me know if you need further detail to be able to assist me. This
kind of weird nesting is definitely not in any book I've ever seen and I've
searched everywhere I can think of to find something I can use.

Thanks, Alicia
 
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 12:21 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"