Formula Combining IF, ROUND, AND

Rmayfield

New Member
Joined
Feb 19, 2021
Messages
13
Office Version
  1. 2013
Platform
  1. Windows
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.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

JamesCanale

Well-known Member
Joined
Jan 13, 2021
Messages
568
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
MrExcelPlayground.xlsm
A
175
2X
3 
Sheet20
Cell Formulas
RangeFormula
A3A3=IF(AND(A1<75,A2="X"),ROUNDUP(A1/30,0),"")
 
Solution

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
72,970
Office Version
  1. 365
Platform
  1. Windows
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Help with a FormulaCombining IF, ROUND, AND
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 

Rmayfield

New Member
Joined
Feb 19, 2021
Messages
13
Office Version
  1. 2013
Platform
  1. Windows
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Help with a FormulaCombining IF, ROUND, AND
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
Sorry, I did not remove my question from another site. I did now.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
72,970
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

There is no need to remove your question from the other site, just let us know in future.

Did the formula from JamesCanale work for you?
 

Rmayfield

New Member
Joined
Feb 19, 2021
Messages
13
Office Version
  1. 2013
Platform
  1. Windows
There is no need to remove your question from the other site, just let us know in future.

Did the formula from JamesCanale work for you?
I don't know yet. Still working on it. I will let you know. Thanks.
 
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,163,437
Messages
5,831,625
Members
430,077
Latest member
CoulterM

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