+ Reply to Thread
Results 1 to 11 of 11

Vlookup & if then

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2011
    Posts
    5

    Vlookup & if then

    =IF(ISBLANK(S6),"",VLOOKUP(S6,[FileExchange_Response_18973302.csv]FileExchange_Response_18973302.!$A$2:$D$252,4,FALSE))

    Right now, IF S6 is blank then the active cell returns blank. I want: IF S6 is blank then the active cell does nothing.

    Thanks.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup & if then

    what do you mean nothing? it cant return nothing
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2011
    Posts
    5

    Re: Vlookup & if then

    I want the active cell to retain the value it currently has.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup & if then

    if you have a formula in a cell you only get the result of the formula,i dont understand what value you want to have

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2011
    Posts
    5

    Re: Vlookup & if then

    I dont understand what's so complicated about this request. Let me make it simpler.

    I am putting a formula in Cell A to say IF cell B is empty then leave cell A alone. . .

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup & if then

    no thats not simple if you put a formula in a1 it must give an answer. what do you want it to say then,what is in a1 that you want to keep if say b1 is empty?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Vlookup & if then

    If I understand you correctly, you want to be able to have a value AND a formula in A1?

    IF thats what you want, you cannot have a value/entry in a cell AND a formula - 1 or the other, not both

    Or do you mean...

    A1=if(B1="","",B1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    07-10-2013
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2011
    Posts
    5

    Re: Vlookup & if then

    Is there anyway I could send you a sample of my worksheet?
    Appreciate your help.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup & if then

    yep like this
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  10. #10
    Registered User
    Join Date
    07-10-2013
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2011
    Posts
    5

    Re: Vlookup & if then

    Sheet 1 is updated info that I want VLOOKUP to pull into Sheet 2.
    On Sheet 2 I have written this formula in cell C2: =VLOOKUP(A2,'Sheet 1'!A2:D12,3,FALSE)
    I want to be able to copy the formula and apply to the entire column.
    The problem is that when Column A is blank, it will erase whatever is in Column C, such as C4, C5 and C7. I would like to write the IF(ISBLANK...) portion of this to say IF A is BLANK then DO NOTHING. Keep 74.99 in C4... etc. Thanks.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Vlookup & if then

    Why not filter to exclude BLANKS then applly the vlookup formula, or create a helper column where you copy and paste value from C to F then use an if function to grab F if A is blank?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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