#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Vlookup

I hav another question:

Column A Column B
EUR 79
USD 49
EUR -23
USD -15
USD -10

How can I sum up for EUR and USD? and how can I sum up for USD's minus
number?

Thanks a lot.
--
Lowan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Vlookup

Try this

=SUMIF(A1:A32,"EUR",B1:B32)

The formula will sum minus valus too.

Mike

"Lowan Chan" wrote:

I hav another question:

Column A Column B
EUR 79
USD 49
EUR -23
USD -15
USD -10

How can I sum up for EUR and USD? and how can I sum up for USD's minus
number?

Thanks a lot.
--
Lowan

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Vlookup


Lowan Chan;402905 Wrote:
I hav another question:

Column A Column B
EUR 79
USD 49
EUR -23
USD -15
USD -10

How can I sum up for EUR and USD? and how can I sum up for USD's
minus
number?

Thanks a lot.
--
Lowan


Hi,
=sumif(a1:a10,"EUR",b1:b10) for 0 values
=sumproduct((a1:a10="usd)*(b1:b10<0)*b1:b10)


--
Pecoflyer

Cheers -

'Firefox 3.5' (http://www.mozilla.com/en-US/firefox/all-beta.html)
really IS fast !
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=112384

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Vlookup

Perhaps I misunderstood and you only want to sum the negative values

=SUMPRODUCT((A1:A20="USD")*(B1:B20<0)*(B1:B20))

Mike

"Mike H" wrote:

Try this

=SUMIF(A1:A32,"EUR",B1:B32)

The formula will sum minus valus too.

Mike

"Lowan Chan" wrote:

I hav another question:

Column A Column B
EUR 79
USD 49
EUR -23
USD -15
USD -10

How can I sum up for EUR and USD? and how can I sum up for USD's minus
number?

Thanks a lot.
--
Lowan

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Vlookup

For negative USD only:
=SUMPRODUCT(--(A1:A5="USD"),--(B1:B5<0),B1:B5)
Regards,
Stefi

€˛Mike H€¯ ezt Ć*rta:

Try this

=SUMIF(A1:A32,"EUR",B1:B32)

The formula will sum minus valus too.

Mike

"Lowan Chan" wrote:

I hav another question:

Column A Column B
EUR 79
USD 49
EUR -23
USD -15
USD -10

How can I sum up for EUR and USD? and how can I sum up for USD's minus
number?

Thanks a lot.
--
Lowan



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Vlookup

Hi Lowan

1. How can I sum up for EUR and USD?

=SUMPRODUCT(--ISNUMBER(MATCH(A2:A10,{"USD","EUR"},0)),B2:B10)

2. How can I sum up for USD's minus number?

=SUMPRODUCT(--(A2:A10="USD"),--(B2:B10<0),B2:B10)

If this post helps click Yes
---------------
Jacob Skaria


"Lowan Chan" wrote:

I hav another question:

Column A Column B
EUR 79
USD 49
EUR -23
USD -15
USD -10

How can I sum up for EUR and USD? and how can I sum up for USD's minus
number?

Thanks a lot.
--
Lowan

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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 04:54 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"