Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default sum column and calculate numbers 0 in the same column with 1,5

I have numbers 0 and <0 in a column B2 to B33. I have to multiply the
numbers 0 with 1,5 and add the column. Please help.
Gutti
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default sum column and calculate numbers 0 in the same column with 1,5

Try this:

=SUMIF(B2:B33,"0")*1,5

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Gutti" wrote in message
...
I have numbers 0 and <0 in a column B2 to B33. I have to multiply the
numbers 0 with 1,5 and add the column. Please help.
Gutti



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default sum column and calculate numbers 0 in the same column with 1,5

Hi Gutti,

Try
=SUMIF(B2:B33,"0")*1.5+SUMIF(B2:B33,"<0")

Looks like you are using a European setup so you
will have to alter the separators to suit.

HTH
Martin



"Gutti" wrote in message
...
I have numbers 0 and <0 in a column B2 to B33. I have to multiply the
numbers 0 with 1,5 and add the column. Please help.
Gutti



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default sum column and calculate numbers 0 in the same column with 1,5

If Martin interpreted your post correctly,
try this:

=SUM(SUMIF(B2:B33,"0")*0.5,B2:B33)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Ron Coderre" wrote in message
...
Try this:

=SUMIF(B2:B33,"0")*1,5

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Gutti" wrote in message
...
I have numbers 0 and <0 in a column B2 to B33. I have to multiply the
numbers 0 with 1,5 and add the column. Please help.
Gutti





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default sum column and calculate numbers 0 in the same column with 1,5

And the difference would be?

Don't get me wrong I'm all for streamlining formulae, but when
you are just talking about two ways around a square. Why bother?

Regards
Martin


"Ron Coderre" wrote in message
...
If Martin interpreted your post correctly,
try this:

=SUM(SUMIF(B2:B33,"0")*0.5,B2:B33)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Ron Coderre" wrote in message
...
Try this:

=SUMIF(B2:B33,"0")*1,5

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Gutti" wrote in message
...
I have numbers 0 and <0 in a column B2 to B33. I have to multiply the
numbers 0 with 1,5 and add the column. Please help.
Gutti









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default sum column and calculate numbers 0 in the same column with 1,5

Hi, Martin


And the difference would be?

Don't get me wrong I'm all for streamlining formulae, but when
you are just talking about two ways around a square. Why bother?


I'm all for shorter, more efficient formulas...but not so fanatical that I'd
propose a solution that is so arcane that hardly anybody could figure it
out, and nobody would remember how to do it.

In this case, though, the SUMIF checks every cell in the range to see if it
matches. Since there's no compelling need to do that twice....I offered an
alternative with a bit less overhead.

On small ranges, the difference is negligible.
On large ranges...it may be significant.
(For my own curiosity, I'll compare the times when I get a chance)

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"MartinW" wrote in message
...
And the difference would be?

Don't get me wrong I'm all for streamlining formulae, but when
you are just talking about two ways around a square. Why bother?

Regards
Martin


"Ron Coderre" wrote in message
...
If Martin interpreted your post correctly,
try this:

=SUM(SUMIF(B2:B33,"0")*0.5,B2:B33)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Ron Coderre" wrote in message
...
Try this:

=SUMIF(B2:B33,"0")*1,5

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Gutti" wrote in message
...
I have numbers 0 and <0 in a column B2 to B33. I have to multiply the
numbers 0 with 1,5 and add the column. Please help.
Gutti









  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default sum column and calculate numbers 0 in the same column with 1,5

For anybody who might be curious:
I just ran the MicroTimer program from MSDN (Charles Williams' code).

Using the FullCalcTimer (worst case)
Formula #1: =SUMIF(D1:D52810,"0")*1.5+SUMIF(D1:D52810,"<0")
Formula #2: =SUM(SUMIF(D1:D52810,"0")*0.5,D1:D52810)

-------------------------------------
For a single instance of each formula
-------------------------------------
Formula #1 ran in 0.04068 seconds
Formula #2 ran in 0.01034 seconds
Formula #2 was 0.03034 seconds faster.

-------------------------------------
For 100 instances of each formula
---------------------------------
Formula #1 ran in 1.26694 seconds
Formula #2 ran in 1.01559 seconds
Formula #2 was 0.25135 seconds faster.

--------------------------
Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)


"Ron Coderre" wrote in message
...
Hi, Martin


And the difference would be?

Don't get me wrong I'm all for streamlining formulae, but when
you are just talking about two ways around a square. Why bother?


I'm all for shorter, more efficient formulas...but not so fanatical that
I'd
propose a solution that is so arcane that hardly anybody could figure it
out, and nobody would remember how to do it.

In this case, though, the SUMIF checks every cell in the range to see if
it
matches. Since there's no compelling need to do that twice....I offered an
alternative with a bit less overhead.

On small ranges, the difference is negligible.
On large ranges...it may be significant.
(For my own curiosity, I'll compare the times when I get a chance)

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"MartinW" wrote in message
...
And the difference would be?

Don't get me wrong I'm all for streamlining formulae, but when
you are just talking about two ways around a square. Why bother?

Regards
Martin


"Ron Coderre" wrote in message
...
If Martin interpreted your post correctly,
try this:

=SUM(SUMIF(B2:B33,"0")*0.5,B2:B33)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Ron Coderre" wrote in message
...
Try this:

=SUMIF(B2:B33,"0")*1,5

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Gutti" wrote in message
...
I have numbers 0 and <0 in a column B2 to B33. I have to multiply the
numbers 0 with 1,5 and add the column. Please help.
Gutti











Reply
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
Calculate Figures in a column if ajacent column has particular da Shaggy Charts and Charting in Excel 1 August 21st 06 04:43 AM
Calculate an Excel column that contains numbers and #Values Kevin Excel Discussion (Misc queries) 3 August 9th 06 04:35 PM
calculate average in a column based on criteria in another column sharon t Excel Discussion (Misc queries) 2 May 12th 06 06:07 PM
how do you calculate a column of numbers - eg. A1 to A20? Jazzy1980 Excel Discussion (Misc queries) 1 July 6th 05 02:44 AM
calculate which cells in column A will give me the total of column Ken Excel Worksheet Functions 4 January 6th 05 06:25 AM


All times are GMT +1. The time now is 01:47 PM.

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

About Us

"It's about Microsoft Excel"