# Help with a FormulaCombining IF, ROUND, AND

1. ## Help with a FormulaCombining IF, ROUND, AND

Trying to figure out how to do an IF statement, a ROUNDUP and an AND statement in the same cell. Example

Cell A1 the number 75 in it
Cell A2 has an X in it
Cell A3 has my formula

I want the formula to say if cell A2 has an X in it, and cell A1 is <75, divide the number in A1 by 30 and round up. If cell A2 doesn't have an X, then leave the cell blank.

2. ## Re: Help with a FormulaCombining IF, ROUND, AND

Welcome to the forum.

We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

(Note: this change is not optional. As you are new I have done it for you this time.)

3. ## Re: Help with a FormulaCombining IF, ROUND, AND

Thank you for your help. My apologies.

4. ## Re: Help with a FormulaCombining IF, ROUND, AND

Maybe this:

=IF(AND(A2="X",A1<75),ROUNDUP(A1/30,0),"")

5. ## Re: Help with a FormulaCombining IF, ROUND, AND

Oh, dear - another broken rule. Have you read our rules yet???

We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

(Note: this requirement is not optional. As you are new, I will do this for you today: https://www.mrexcel.com/board/thread...d-and.1162323/.)

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1