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

1. ## 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?  Register To Reply

2. ## 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,"")  Register To Reply

3. ## 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!  Register To Reply