Results 1 to 6 of 6

Adding an IF function to the current formula?

Threaded View

  1. #1
    Registered User
    Join Date
    07-27-2022
    Location
    Colorado, USA
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    32

    Adding an IF function to the current formula?

    I am using the current formula to automatically find value for a particular name and add them together to find the average. =(VLOOKUP(A1,Sheet1!A:D,4,0)+INDEX(Sheet2!D:D,MATCH(A1,Sheet2!A:A,0)))/2

    This final number gets imported to the sheet titled "Combined"

    When the name being looked up is present in both sheet 1 and sheet 2, this formula works flawlessly. The issue I have is not every name appears in both sheets. This returns a value of #N/A. I am wondering if there is another function that could be added so that if the name only appears in either sheet 1 or sheet 2, but not both, the formula would simply return the value in the sheet where the name does appear. If the name does not appear in either sheet, I am ok with it returning #N/A as I can easily filter those out of the workbook.

    I have attached the worksheet for reference. Thanks in advance!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Adding If Function To my current Code
    By SteynfaardtD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2019, 03:03 PM
  2. Periodically adding additional text to current formula
    By HCornelian1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2017, 09:28 AM
  3. [SOLVED] Adding a new Condition to a current Formula
    By hammer2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2015, 04:36 PM
  4. Adding a IF function to a current formula
    By lcartwright in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2015, 02:21 AM
  5. adding Indirect formula to my current sum if array formula
    By Eastbay2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-13-2013, 09:41 AM
  6. adding current date then after saving the file current date function stops
    By gotbitey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2011, 02:15 PM
  7. Adding WEEKDAY to current formula
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-06-2006, 11:19 PM

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