Help on using multiple IF formula

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
95
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.

Could you please help me. Thank you

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
Joined
Jan 18, 2019
Messages
95
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.

Could you please help me. Thank you

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
Joined
Apr 29, 2003
Messages
6,485
Platform
  1. MacOS
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
Joined
Jan 18, 2019
Messages
95
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))
 
Master Excel Bundle

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

Threads
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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top