If AND Formula Help

Apples52

New Member
Joined
Sep 25, 2023
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to get this formula to say If cell B is greater than 0, AND cell G is less than 2000, return value H. The formula is in column J. You can see the text of that formula I've pasted in column K.

In row 1 and 2, I've got the first half of the formula I want to work. However, in row 3 when I try to exclude values in column G that are 2000 and greater using an "AND" statement, it's not working. I've tried a few different "AND" statements, but can't get the formula to return a "0" value for account numbers greater than 2000 in column G.

[For background, colum B is a store number and column G are account numbers, where assets are in the 1000's and liabilites are in the 2000's. I only want assets values (column G) that also have a store number (column B)].

Can you help show me where I'm going wrong?

statement.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
What about this:

Excel Formula:
=IF(AND(B1>0,G1<2000),H1,0)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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
Back
Top