+ Reply to Thread
Results 1 to 7 of 7

Formula - adding an IF Query onto vlookup query

  1. #1
    Registered User
    Join Date
    11-30-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    58

    Formula - adding an IF Query onto vlookup query

    Please see attached





    Hi all, I have a rather a tricky one today..[for me anyway]... please see tab 'PSF', columns B and C

    You will see a simple v-lookup table based on column D

    The problem is this:
    I need something to look at column F, and if the letters 'HGV' appear at all in this column then in overrides the values in columns B&C

    So if 'HGV' appears in any way or form in column F then column B overrides the vlookup table and becomes the value "Maltby Substitute" and column C overrides the v-lookup table and becomes "Drax". I somehow need to add this in without damaging the existing formula.

    Any ideas guys?

    Thanks very much indeed in advance for any help,

    M
    Attached Files Attached Files
    Last edited by mra1984; 12-06-2013 at 05:13 AM.

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Tricky formula query

    Quote Originally Posted by mra1984 View Post
    ...So if 'HGV' appears in any way or form in column F then column B overrides the vlookup table and becomes the value "Maltby Substitute" and column C overrides the v-lookup table and becomes "Drax". I somehow need to add this in without damaging the existing formula.
    What do you mean by "without damaging the existing formulas" ?
    If you want to get a change from the existing output, then, the "existing formulas" ARE going to get changed
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Contributor rajeshturaha's Avatar
    Join Date
    08-22-2012
    Location
    Assam, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    236

    Re: Tricky formula query

    HI,

    Try for Col B

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and for Col C

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the attachment
    Rgd
    RT
    If my answer(s) helped you, please add me reputation by click on *

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula - adding an IF Query onto vlookup query

    rajeshturaha

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

    If you are unclear about the request or instruction then send a private message to them asking for clarification. Do not post a reply in a thread where a moderator has requested an action that has not yet been complied with e.g Title change or Code tags...etc
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    11-30-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Formula - adding an IF Query onto vlookup query

    @ Fotis, sorry, my title is changed

    @ rajesh - thanks very much my friend. this is fantastic! rep being added now.

  6. #6
    Forum Contributor rajeshturaha's Avatar
    Join Date
    08-22-2012
    Location
    Assam, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    236

    Re: Formula - adding an IF Query onto vlookup query

    Hi Fortis

    Sorry, for that
    It was not intentionally done.
    I will keep that in mind in future.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Formula - adding an IF Query onto vlookup query

    Not my intention to punish members... I am Just trying to keep forum rules. This is my job here..

    Pls be more carefull from now on!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Tricky formula
    By martins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2007, 07:18 PM
  2. Tricky Formula
    By martins in forum Excel General
    Replies: 5
    Last Post: 10-17-2006, 08:27 PM
  3. Help with a tricky formula......
    By nevi in forum Excel General
    Replies: 1
    Last Post: 05-31-2006, 05:45 PM
  4. [SOLVED] Tricky formula
    By Steve in forum Excel General
    Replies: 3
    Last Post: 04-17-2006, 12:10 PM
  5. Tricky Formula.. Please Help
    By Aaron H in forum Excel General
    Replies: 1
    Last Post: 01-17-2005, 08:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1