Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2016, 01:14 PM
RAH RAH is offline ROUNDUP ONLY if  > THAN A FIGURE Windows 10 ROUNDUP ONLY if  > THAN A FIGURE Office 2016
Advanced Beginner
ROUNDUP ONLY if  > THAN A FIGURE
 
Join Date: Jun 2016
Posts: 31
RAH is on a distinguished road
Default ROUNDUP ONLY if > THAN A FIGURE

I am using the round up function as follows =ROUNDUP(D22,G3)>3 but it only displays false or true in the chosen cell. D3 is the digits or decimal places box. what do I need to add in order to display the figures greater than the no 3 in the designated cell


Basically i missed the part I only wish to ROUNDUP if the cell is greater than the no 3
Thanking you in advance
Reply With Quote
  #2  
Old 12-28-2016, 01:33 PM
jeffreybrown jeffreybrown is offline ROUNDUP ONLY if  > THAN A FIGURE Windows Vista ROUNDUP ONLY if  > THAN A FIGURE Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Not sure this is entirely clear.

You want to Roundup only if a cell is greater than 3?

What do you want if the cell is less than 3?

=IF(A1>3,ROUNDUP(B1,0),B1)
Reply With Quote
  #3  
Old 12-28-2016, 01:50 PM
RAH RAH is offline ROUNDUP ONLY if  > THAN A FIGURE Windows 10 ROUNDUP ONLY if  > THAN A FIGURE Office 2016
Advanced Beginner
ROUNDUP ONLY if  > THAN A FIGURE
 
Join Date: Jun 2016
Posts: 31
RAH is on a distinguished road
Default

Thanks for the reply and sorry for my poor explanation. Basically I have equipment that comes in set lengths apart from the first three metres. The lengths are as follows 0.5 metre 1 metre 1.5 metre 2 metre 2.5 metre 3 metre all the others go up in increments of one meter until a point and then go up in two meter increments. So everything below the figure three goes up from 0 to 3 in 0.5 increments that's why I asked for greater than 3 as I was going to tackle the below figures separately being a novice however if you can include the below and above figures in the one equation I would be knocked over thanking you in advance
Reply With Quote
  #4  
Old 12-28-2016, 01:56 PM
jeffreybrown jeffreybrown is offline ROUNDUP ONLY if  > THAN A FIGURE Windows Vista ROUNDUP ONLY if  > THAN A FIGURE Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Could you piece together a file with some example data and the results you expect?
Reply With Quote
  #5  
Old 12-28-2016, 02:41 PM
RAH RAH is offline ROUNDUP ONLY if  > THAN A FIGURE Windows 10 ROUNDUP ONLY if  > THAN A FIGURE Office 2016
Advanced Beginner
ROUNDUP ONLY if  > THAN A FIGURE
 
Join Date: Jun 2016
Posts: 31
RAH is on a distinguished road
Default Roundup if figure is greater

Please find attached hope it makes sense
Attached Files
File Type: xlsx EXCEL LENGHT CALC EXAMPLE.xlsx (10.2 KB, 13 views)
Reply With Quote
  #6  
Old 12-28-2016, 03:04 PM
jeffreybrown jeffreybrown is offline ROUNDUP ONLY if  > THAN A FIGURE Windows Vista ROUNDUP ONLY if  > THAN A FIGURE Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

For the life of me, I can't get the first part (3 and under) with using one of the round functions, but this should do it...

Let me know how this works out for you...

Code:
       -A-- -B--
   1   0.00 0.50
   2   0.5  1.00
   3   1.00 1.50
   4   1.5  2.00
   5   2.00 2.50
   6   2.5  3.00
   7   3.00 3.00
   8   3.10 4.00
   9   3.40 4.00
  10   3.57 4.00
  11   3.77 4.00
  12   3.97 4.00
  13   4.17 5.00
  14   4.37 5.00
B1 copied down =IF(A1<=3,LOOKUP(A1,{0,0.5,1,1.5,2,2.5,3},{0.5,1,1 .5,2,2.5,3,3}),ROUNDUP(A1,0))

Are the value 3 and below perfect values in the .5 increments or could they be 2.6 and such?
Reply With Quote
  #7  
Old 12-29-2016, 01:31 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows 7 64bit ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,790
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

You can also try =CEILING(A1+0.0000000000001,0.5+0.5*(A1>=3))

the parenthesis around A1>=3 are crucial
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #8  
Old 12-29-2016, 05:22 AM
RAH RAH is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows 10 ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2016
Advanced Beginner
ROUNDUP ONLY if  &gt; THAN A FIGURE
 
Join Date: Jun 2016
Posts: 31
RAH is on a distinguished road
Default

The below no 3 values can come out from a previous calculation at anything. I t can come out at say 2.32 mtrs however the only size available to work safely is the next one up 2.5 mtrs so it will round up to 2.5 mtrs if greater than two.
Reply With Quote
  #9  
Old 12-29-2016, 05:36 AM
RAH RAH is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows 10 ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2016
Advanced Beginner
ROUNDUP ONLY if  &gt; THAN A FIGURE
 
Join Date: Jun 2016
Posts: 31
RAH is on a distinguished road
Default

Well looks like it solved they both work out great cant thank you enough for taking the time to help . Got to test it through the range of results but looking good so far.
Reply With Quote
  #10  
Old 12-29-2016, 06:13 AM
RAH RAH is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows 10 ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2016
Advanced Beginner
ROUNDUP ONLY if  &gt; THAN A FIGURE
 
Join Date: Jun 2016
Posts: 31
RAH is on a distinguished road
Default

Spoke too soon ? They both work to a point. IF the figure comes out at 1.5 it should display 1.5 as this is a round up length. However when it runs in the statement
=IF(A1<=3,LOOKUP(A1,{0,0.5,1,1.5,2,2.5,3},{0.5,1,1 .5,2,2.5,3,3}),ROUNDUP(A1,0)) if the return figure is 1.5 it rounds up to the figure 2 where as it should display 1.5 any ideas as to the solution

=CEILING(A1+0.0000000000001,0.5+0.5*(A1>=3)) returns the same set of figures however once you get a result say 3 it rounds up to four however it should display 3 as it is a round up figure

Nearly solved
Reply With Quote
  #11  
Old 12-29-2016, 07:25 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows 7 64bit ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,790
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Try
=CEILING(A1,0.5+0.5*(A1>=3))

Adding a sheet with expected results ( not just explanation) makes things easier
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #12  
Old 12-29-2016, 10:56 AM
RAH RAH is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows 10 ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2016
Advanced Beginner
ROUNDUP ONLY if  &gt; THAN A FIGURE
 
Join Date: Jun 2016
Posts: 31
RAH is on a distinguished road
Default

It works perfectly now. Thank you both for taking the time solving this problem for me. I will take on board your advice attaching a sheet would make it easier to understand at the other end. However I have to say you have gone beyond what some people would have done and taken the time to understand something which at the other end must have been difficult to understand.
Most people would just have had a look and said mmm move on.
Most people who are good at what they do lack the professionalism to pass their knowledge on. However you two solved that one as well thanking you both
Reply With Quote
  #13  
Old 12-29-2016, 11:00 AM
jeffreybrown jeffreybrown is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows Vista ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

You are most welcome. We are happy to help.
Reply With Quote
  #14  
Old 12-29-2016, 11:06 AM
RAH RAH is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows 10 ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2016
Advanced Beginner
ROUNDUP ONLY if  &gt; THAN A FIGURE
 
Join Date: Jun 2016
Posts: 31
RAH is on a distinguished road
Default

Now the final problem no matter how hard I try the drop down box does not give me the option to display problem solved guidance would be good or am I just missing or cant see the marked as solved bit lol
Reply With Quote
  #15  
Old 12-29-2016, 11:19 AM
jeffreybrown jeffreybrown is offline ROUNDUP ONLY if  &gt; THAN A FIGURE Windows Vista ROUNDUP ONLY if  &gt; THAN A FIGURE Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

I don't think this forum has that option. Eventually I believe a moderator may mark "as solved".
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to figure out this code sharpied Word 0 07-27-2016 12:09 PM
Caption Order: Figure 4 Figure 3 Figure 2 golfarchitect13 Word 5 05-07-2014 07:15 PM
ROUNDUP ONLY if  &gt; THAN A FIGURE Convert "Figure", "Figure", "Figure" to "Figure1", "Figure2", etc. altjx Word 4 06-04-2013 05:29 AM
ROUNDUP ONLY if  &gt; THAN A FIGURE Two pictures in one figure? seanspotatobusiness Word 1 06-08-2011 03:25 PM
Geometrical figure adabad PowerPoint 0 05-20-2011 12:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft