#1   Report Post  
steve alcock
 
Posts: n/a
Default sumif use

Hi,

I want to use sumif in the following way :

SUMIF(purchases!O18:purchases!O500,"=b21",purchase s!
Q18:purchases!Q500)

and not :

SUMIF(purchases!O18:purchases!O500,"=01960",purcha ses!
Q18:purchases!Q500)

in otherwords I want to use the value of the cell b21 to
look up and not the typed in value ( 01960 ) can this be
done ?

thanks

steve
  #2   Report Post  
Andy Wiggins
 
Posts: n/a
Default

SUMIF(purchases!O18:purchases!O500,"="&B21,purchas es!Q18:purchases!Q500)


--
Regards
-
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy


"steve alcock" wrote in message
...
Hi,

I want to use sumif in the following way :

SUMIF(purchases!O18:purchases!O500,"=b21",purchase s!
Q18:purchases!Q500)

and not :

SUMIF(purchases!O18:purchases!O500,"=01960",purcha ses!
Q18:purchases!Q500)

in otherwords I want to use the value of the cell b21 to
look up and not the typed in value ( 01960 ) can this be
done ?

thanks

steve



  #3   Report Post  
steve alcock
 
Posts: n/a
Default

Hi Andy,

many thanks it works a treat

regards

steve


-----Original Message-----
SUMIF(purchases!O18:purchases!O500,"="&B21,purcha ses!

Q18:purchases!Q500)


--
Regards
-
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy


"steve alcock" wrote in

message
...
Hi,

I want to use sumif in the following way :

SUMIF(purchases!O18:purchases!O500,"=b21",purchase s!
Q18:purchases!Q500)

and not :

SUMIF(purchases!O18:purchases!O500,"=01960",purcha ses!
Q18:purchases!Q500)

in otherwords I want to use the value of the cell b21 to
look up and not the typed in value ( 01960 ) can this be
done ?

thanks

steve



.

  #4   Report Post  
Alan
 
Posts: n/a
Default

Why not
=SUMIF(purchases!O18:purchases!O500,B21,purchases! Q18:purchases!Q500)
?
Regareds
"steve alcock" wrote in message
...
Hi Andy,

many thanks it works a treat

regards

steve


-----Original Message-----
SUMIF(purchases!O18:purchases!O500,"="&B21,purch ases!

Q18:purchases!Q500)


--
Regards
-
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy


"steve alcock" wrote in

message
...
Hi,

I want to use sumif in the following way :

SUMIF(purchases!O18:purchases!O500,"=b21",purchase s!
Q18:purchases!Q500)

and not :

SUMIF(purchases!O18:purchases!O500,"=01960",purcha ses!
Q18:purchases!Q500)

in otherwords I want to use the value of the cell b21 to
look up and not the typed in value ( 01960 ) can this be
done ?

thanks

steve



.



  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

As a pedagogical exercise???

The OP could see how to change the formula to look for greater than (or any
other comparison operator).

Just my guess.



Alan wrote:

Why not
=SUMIF(purchases!O18:purchases!O500,B21,purchases! Q18:purchases!Q500)
?
Regareds
"steve alcock" wrote in message
...
Hi Andy,

many thanks it works a treat

regards

steve


-----Original Message-----
SUMIF(purchases!O18:purchases!O500,"="&B21,purch ases!

Q18:purchases!Q500)


--
Regards
-
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy


"steve alcock" wrote in

message
...
Hi,

I want to use sumif in the following way :

SUMIF(purchases!O18:purchases!O500,"=b21",purchase s!
Q18:purchases!Q500)

and not :

SUMIF(purchases!O18:purchases!O500,"=01960",purcha ses!
Q18:purchases!Q500)

in otherwords I want to use the value of the cell b21 to
look up and not the typed in value ( 01960 ) can this be
done ?

thanks

steve


.


--

Dave Peterson
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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
How do I use the sumif if I have multiple criteria (i.e. greater . Kellyatisl Excel Worksheet Functions 3 June 4th 06 06:33 AM
SUMIF Not vanjohnson Excel Discussion (Misc queries) 1 March 4th 05 08:42 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


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