LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
AMarie
 
Posts: n/a
Default If statement w/ rounding but not all numbers


Hello everyone,

I知 new to excel forums! I知 a Quality Analyst for a financial company
and am using excels built in functions to create test scenarios for the
developers to use (they do test driven development). Instead of doing
all my totals and calculations my hand, I致e added some functions to do
it for me. There is a piece that I知 struggling with. Perhaps someone
has done something similar and can help me.

Here痴 what I知 trying to do:

.3989
.4603
.1407
='s
.9999

Based on this list (minus the .9999) I need to determine which numbers
I can round up to the tenths place so that my total is .1 instead of
.9999. So the numbers above would need to change to:

.40
.46
.14
='s
.100

I need these to be whole numbers so I would multiply all by 100 so my
ending totals would be:

40
46
14
='s
100

Here痴 the catch, I only round when my total does not equal .1 (or
100). In this case my total equaled .1 after rounding up only one
number (.3989). In some cases, I might need to round two numbers or
perhaps four and so on

So how should I approach this? I know that I値l need to do an if
statement that says something like 的f total < .1 then 澱egin the
rounding, else 添ay! Go to next scenario.

I知 praying that I don稚 have to do an array, I知 an ex-developer and
me and arrays never got along.

Thanks everyone for reading and please help if you can.
:)


--
AMarie
------------------------------------------------------------------------
AMarie's Profile: http://www.excelforum.com/member.php...o&userid=27924
View this thread: http://www.excelforum.com/showthread...hreadid=474763

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounding numbers to the nearest 5 or 0 Fieldmedic Excel Worksheet Functions 3 July 17th 05 06:51 AM
How do I stop rounding numbers? Jfeeman Excel Discussion (Misc queries) 3 March 16th 05 01:49 PM
Rounding numbers to the nearest thousand Mark Excel Discussion (Misc queries) 2 March 10th 05 12:13 PM
can the negative numbers in an IF statement be in a diff color th. mwhite17 Excel Worksheet Functions 1 January 12th 05 09:59 PM
can the negative numbers in an IF statement be in a diff color th. [email protected] Excel Worksheet Functions 1 January 12th 05 07:39 PM


All times are GMT +1. The time now is 07:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ゥ2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"