We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Adding a Value in Excel

Cotta
Cotta Posts: 3,667 Forumite
Hi All,

I have the following formula within Excel, however at present it's returning #N/A as there is no associated value within table two (this can sometimes be the case as the variables fluctuate). Is there a way to correct this issue?

Thanks

=VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A:$I,2,FALSE)+VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A$40:$I$86,2,FALSE)

Comments

  • bod1467
    bod1467 Posts: 15,214 Forumite
    Longwinded way - someone may have a neater approach:

    =IF(ISNA(VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A:$I,2,FALSE)+VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A$40:$I$86,2,FALSE)),"",=VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A:$I,2,FALSE)+VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A$40:$I$86,2,FALSE))
  • Cotta
    Cotta Posts: 3,667 Forumite
    bod1467 wrote: »
    Longwinded way - someone may have a neater approach:

    =IF(ISNA(VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A:$I,2,FALSE)+VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A$40:$I$86,2,FALSE)),"",=VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A:$I,2,FALSE)+VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A$40:$I$86,2,FALSE))

    Thanks for your response, I've tried your formula but it returns an error within the section highlighted in bold above.
  • bod1467
    bod1467 Posts: 15,214 Forumite
    Just remove the 2nd = ... that was a cut/paste typo. :)
  • rmg1
    rmg1 Posts: 3,159 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Or, to be very picky ;), you could do this:=

    =IF(ISNA(VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A:$I,2,FALSE)),0,VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A:$I,2,FALSE))+IF(ISNA(VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A$40:$I$86,2,FALSE)),0,VLOOKUP($A$1,'[combined.xlsx]Money Value'!$A$40:$I$86,2,FALSE))


    I think I've got the brackets in the right places, but that will substitute zero for any error values rather than wiping out the entire calculation.

    ::edit::
    Just checked the brackets and added a few inn (hopefully) the right places.
    :wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:

    Any posts are my opinion and only that. Please read at your own risk.
  • Cotta
    Cotta Posts: 3,667 Forumite
    Thanks all, I'm up and going again.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352K Banking & Borrowing
  • 253.5K Reduce Debt & Boost Income
  • 454.2K Spending & Discounts
  • 245K Work, Benefits & Business
  • 600.6K Mortgages, Homes & Bills
  • 177.4K Life & Family
  • 258.8K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.