Multiple IF Formulas and Conditions

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
92
Hi,

I am trying to use a Multiple IF formula to help me give the values if the following conditions are met, but it gives me a #Value error.

Could you please help me figure out the correct formula for this.

Thank you

=IF(AND(B2034<>B2035),H2035+I2035-J2035,IF(ISNUMBER(SEARCH("Beginning Balance",C2035)),(D2035+I2035-J2035),IF(AND(MONTH(F2035)<>MONTH(F2034)),(I2035-J2035),(K2034+I2035-J2035))))
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

jondavis1987

Active Member
Joined
Dec 31, 2015
Messages
384
Office Version
  1. 2019
Platform
  1. Windows
i would think the problem is the <>. It reads to as if you want the formula to do that function if B2034 is less or greater than B2034. I would try it with an if function of B2034=B2035 and then have the if false part read what you want it to do if it doesn't meet that condition.
 

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,468
Platform
  1. MacOS
i would think the problem is the <>. It reads to as if you want the formula to do that function if B2034 is less or greater than B2034. I would try it with an if function of B2034=B2035 and then have the if false part read what you want it to do if it doesn't meet that condition.

< > means "Not Equal" to
 

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
92

ADVERTISEMENT

Thank you, that helped.

It turns out formula does not work, if specifically cell "H" is blank. If cells I and J are blank, it still reads and displays the results.

Could you please help me on how to convert blank cells to number format, so that the formula can read this. I dot not want to manually write "0" in columns where there was no data previously.



The error is probably coming from one of the cells that you are using in the formula.
 

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,468
Platform
  1. MacOS
Are their formula in the cells, in e.g. cell H? If so i'm guessing they return "" instead of a zero, try changing the "" to 0.
 

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
92
That is amazingly sharp and accurate, that's exactly what I had in the cell. :)

I have replaced the "" with a 0 and converted the number to accounting series, so that it returns a "-" wherever there is 0.

Thank you so much.


Are their formula in the cells, in e.g. cell H? If so i'm guessing they return "" instead of a zero, try changing the "" to 0.
 

Watch MrExcel Video

Forum statistics

Threads
1,108,956
Messages
5,525,885
Members
409,669
Latest member
JDCupps

This Week's Hot Topics

Top