+ Reply to Thread
Results 1 to 3 of 3

Vlookups & Calcs

Hybrid View

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    11

    Vlookups & Calcs

    I have Vlookup formulas inputted in an Excel Grid waiting to pull over data from another sheet. I have added sum total formulas as well, but they won’t calculate with the vlookup formulas sitting there. Is there a way to get the sum formulas to work only on cells with actual values pulling over?

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Vlookups & Calcs

    What are you getting in the cells without values? #N/A, or some such error message? If so, you can wrap your current formula in an IFERROR formula, where you can specify what should be shown/returned in cells that evaluate to an error. Syntax is =IFERROR(your formula here,value if error) - I suggest a "0" if error, so that your sum formula will still work.

    Hope this helps.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    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
    53,048

    Re: Vlookups & Calcs

    @ shootingstarz - I would suggest that you add iferror to you're vlookups so they return a 0. that way, you're sum() functions will work just fine.

    If you dont want a bunch of 0's, use iferror with "", then use sumif() or sumifS() constructed to exclude ""

    =SUMIF(A1:A6,"<>"&"",C1:C6)
    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

+ 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