# Help on using multiple IF formula

#### questforexcel

##### Board Regular
Hi ,

I know how to use the Simple IF and IFS formula.

I am trying to combine two , three IF formulas based on a set criteria but there is an error in my formula.

What I would like my formula to do is search for two conditions in two adjacent cells, if both these conditions are met, then search if there is a beginning value in the adjacent cell, if there is that value, then give me "(D2905+I2906-J2906), if there is not "Beginning Balance", then provide me with alternative of

IF(AND(B2906=B2907,AND(F2907=F2906)),(ISNUMBER(SEARCH("Beginning Balance",C2906)),(D2906+I2907-J2907)),IF(AND(MONTH(F2906)<>MONTH(F2907)),(I2907-J2907),(K2906+I2907-J2907))

### Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use \$ signs: \$V\$2:\$Z\$99 will always point to V2:Z99, even after copying

#### questforexcel

##### Board Regular
This is exactly what I want to do, But I get the error "#Value"

=IF(AND(B2907<>B2906),H2907+I2907-J2907,IF(ISNUMBER(SEARCH("Beginning Balance",C2906)),(D2906+I2907-J2907),IF(AND(MONTH(F2906)<>MONTH(F2907)),(I2907-J2907),(K2906+I2907-J2907))))

Hi ,

I know how to use the Simple IF and IFS formula.

I am trying to combine two , three IF formulas based on a set criteria but there is an error in my formula.

What I would like my formula to do is search for two conditions in two adjacent cells, if both these conditions are met, then search if there is a beginning value in the adjacent cell, if there is that value, then give me "(D2905+I2906-J2906), if there is not "Beginning Balance", then provide me with alternative of

IF(AND(B2906=B2907,AND(F2907=F2906)),(ISNUMBER(SEARCH("Beginning Balance",C2906)),(D2906+I2907-J2907)),IF(AND(MONTH(F2906)<>MONTH(F2907)),(I2907-J2907),(K2906+I2907-J2907))

#### gaz_chops

##### Well-known Member
Maybe

=IF(AND(B2906=B2907,F2907=F2906,ISNUMBER(SEARCH("Beginning Balance",C2906))),D2906+I2907-J2907,IF(AND(MONTH(F2906)<>MONTH(F2907)),I2907-J2907,K2906+I2907-J2907))

#### questforexcel

##### Board Regular
I tried this formula as well, it produces similar results to the previous one.

This formula is exactly what I intend to do. So I want it to search if these rows are not equal, if they are not equal, give me H+I-J, if they are then search for Beg Bal in C and add D + I - J

=IF(AND(B2907<>B2906),H2907+I2907-J2907,IF(ISNUMBER(SEARCH("Beginning Balance",C2906)),(D2906+I2907-J2907),IF(AND(MONTH(F2906)<>MONTH(F2907)),(I2907-J2907),(K2906+I2907-J2907))))

Maybe

=IF(AND(B2906=B2907,F2907=F2906,ISNUMBER(SEARCH("Beginning Balance",C2906))),D2906+I2907-J2907,IF(AND(MONTH(F2906)<>MONTH(F2907)),I2907-J2907,K2906+I2907-J2907)) Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

### Forum statistics

1,164,626
Messages
5,838,431
Members
430,547
Latest member
jopshio ### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?    1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option. Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com". Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button. Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button. Go back