+ Reply to Thread
Results 1 to 3 of 3

Adding another formula to a cell that already has a formula, then sum them?

  1. #1
    Registered User
    Join Date
    12-22-2011
    Location
    americuh
    MS-Off Ver
    Excel 2003
    Posts
    36

    Adding another formula to a cell that already has a formula, then sum them?

    I have column A that has the following formula which references a numerical list in another worksheet (based on a data validation list selection in the main worksheet):

    =IFERROR(VLOOKUP(H2&I2,Structure!C:D,2,FALSE),"")

    So it will output a number. But i have column B on the main worksheet that is a simple boolean list (yes/no). When 'yes' is selected, i want it to add a predefined number (lets say 2), to the result of column A. How can i do this?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,130

    Re: Adding another formula to a cell that already has a formula, then sum them?

    hi poof, a sample excel file showing your desired results always helps. what do you mean by add? if your result of the VLOOKUP is 4, you want it to be?
    a) 6?
    b) 24?

    for a)
    =IFERROR(IF(B2="yes",2,0)+VLOOKUP(H2&I2,Structure!C:D,2,FALSE),"")

    for b)
    =IFERROR(IF(B2="yes",2,"")&VLOOKUP(H2&I2,Structure!C:D,2,FALSE),"")
    if you need it to be a number ("&" makes them a text), then:
    =IFERROR((IF(B2="yes",2,0)+VLOOKUP(H2&I2,Structure!C:D,2,FALSE))+0,"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-22-2011
    Location
    americuh
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Adding another formula to a cell that already has a formula, then sum them?

    Yes the first one is correct, thank you very much!

+ 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