Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jhorsley
 
Posts: n/a
Default Begins with as criteria in function


All,

I'm trying to do a sumif. For the criteria I want to sum anything that
begins with a value in cell A7. So my formula looks like
=sumif('Worksheet2,!$I$3:$I$586,A7*,'Worksheet2,!J 7:J590)
the value in cell A7 is 4040 SL

I've tried all sorts of variations for the A7* but it returns 0. If I
type in "4040 SL*" for the criteria it comes up with a pretty close
number but not the exact number.

Any ideas?

Jhorsley


--
jhorsley
------------------------------------------------------------------------
jhorsley's Profile: http://www.excelforum.com/member.php...o&userid=26040
View this thread: http://www.excelforum.com/showthread...hreadid=480623

  #2   Report Post  
Harlan Grove
 
Posts: n/a
Default Begins with as criteria in function

"jhorsley" wrote...
I'm trying to do a sumif. For the criteria I want to sum anything that
begins with a value in cell A7. So my formula looks like
=sumif('Worksheet2,!$I$3:$I$586,A7*,'Worksheet2,! J7:J590)
the value in cell A7 is 4040 SL

I've tried all sorts of variations for the A7* but it returns 0. If I
type in "4040 SL*" for the criteria it comes up with a pretty close
number but not the exact number.


Did you try

=SUMIF('Worksheet2,!$I$3:$I$586,A7&"*",'Worksheet2 ,!J7:J590)


  #3   Report Post  
Roger Govier
 
Posts: n/a
Default Begins with as criteria in function

Hi
Try
=sumif('Worksheet2,!$I$3:$I$586,"A7*",'Worksheet2, !J7:J590)

Regards

Roger Govier


jhorsley wrote:
All,

I'm trying to do a sumif. For the criteria I want to sum anything that
begins with a value in cell A7. So my formula looks like
=sumif('Worksheet2,!$I$3:$I$586,A7*,'Worksheet2,!J 7:J590)
the value in cell A7 is 4040 SL

I've tried all sorts of variations for the A7* but it returns 0. If I
type in "4040 SL*" for the criteria it comes up with a pretty close
number but not the exact number.

Any ideas?

Jhorsley


  #4   Report Post  
Roger Govier
 
Posts: n/a
Default Begins with as criteria in function

Sorry

Totally misread the question. I though you wanted to sum where the values in
column I contained "A7" plus following characters or numbers.
You have correct format from others.


Regards

Roger Govier


Roger Govier wrote:
Hi
Try
=sumif('Worksheet2,!$I$3:$I$586,"A7*",'Worksheet2, !J7:J590)

Regards

Roger Govier


jhorsley wrote:

All,

I'm trying to do a sumif. For the criteria I want to sum anything that
begins with a value in cell A7. So my formula looks like
=sumif('Worksheet2,!$I$3:$I$586,A7*,'Worksheet2,!J 7:J590)
the value in cell A7 is 4040 SL

I've tried all sorts of variations for the A7* but it returns 0. If I
type in "4040 SL*" for the criteria it comes up with a pretty close
number but not the exact number.
Any ideas?

Jhorsley


  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default Begins with as criteria in function

=SUMIF(Worksheet2!$I$3:$I$586,A7&"*",Worksheet2!$J $3:$J$586)

jhorsley wrote:
All,

I'm trying to do a sumif. For the criteria I want to sum anything that
begins with a value in cell A7. So my formula looks like
=sumif('Worksheet2,!$I$3:$I$586,A7*,'Worksheet2,!J 7:J590)
the value in cell A7 is 4040 SL

I've tried all sorts of variations for the A7* but it returns 0. If I
type in "4040 SL*" for the criteria it comes up with a pretty close
number but not the exact number.

Any ideas?

Jhorsley




  #6   Report Post  
mbarron
 
Posts: n/a
Default Begins with as criteria in function

Change your A7* to A7 & "*"

A7* = cell A7 multiplied by ????
A7 &"*" = A7's value & *


=sumif('Worksheet2,!$I$3:$I$586,A7&"*",'Worksheet2 ,!J7:J590)

  #7   Report Post  
swatsp0p
 
Posts: n/a
Default Begins with as criteria in function


I believe your problem lies in the fact that your two ranges are not the
same size. Try this:

=sumif('Worksheet2,!$I$3:$I$586,A7,'Worksheet2,!J3 :J586)

You must start and end on the same rows, or your formula will be
skewed.

Does this work for you?


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=480623

  #8   Report Post  
swatsp0p
 
Posts: n/a
Default Begins with as criteria in function


I believe your problem lies in the fact that your two ranges are not the
same size and the wrong format for using the wildcard. Try this:

=sumif('Worksheet2,!$I$3:$I$586,A7&"*",'Worksheet2 ,!J3:J586)

You must start and end on the same rows, or your formula will be
skewed.
Your wildcard must be inside quotes and concatenated to the cell
reference with the ampersand '&'.

Does this work for you?


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=480623

  #9   Report Post  
jhorsley
 
Posts: n/a
Default Begins with as criteria in function


Thanks a million. That was exactly what I needed.


--
jhorsley
------------------------------------------------------------------------
jhorsley's Profile: http://www.excelforum.com/member.php...o&userid=26040
View this thread: http://www.excelforum.com/showthread...hreadid=480623

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
Function to Count Number of Consecutive Rows with a Specific Criteria? Templee1 Excel Worksheet Functions 2 July 10th 05 10:22 PM
advanced filter criteria "begins with" and "does not begin with" raph_baril Excel Worksheet Functions 3 June 28th 05 10:38 PM
Mode Function with Criteria DaveShoe Excel Worksheet Functions 1 April 6th 05 06:22 PM
SumIf Function using multiple criteria Jamie A Miller Excel Worksheet Functions 1 February 4th 05 05:14 PM
using logical functions as criteria with the SUMIF function pfdubz Excel Worksheet Functions 6 December 1st 04 07:40 PM


All times are GMT +1. The time now is 03:10 AM.

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"