# 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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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))

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))

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))

Replies
3
Views
226
Replies
4
Views
729
Replies
0
Views
2K
Replies
5
Views
2K
Replies
7
Views
625

1,214,685
Messages
6,120,876
Members
448,993
Latest member
InquisitiveFrog

### 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