Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default What is the Difference Between <30 and .<30

Actually I am using Sumif function

In A2:A5 in sheet 1 is Date

Like
<30
<60
30
60


In Sheet2 in A2:A300
30

<60
<30
<60 and so on

Sheet2 B2:B300

100
200
300
500
600
800 and so on

Now When I use =sumif(Sheet2!A:A,Sheet1!A2,Sheet2!B:B)

And it shows 0 in all Cells

But one of My friend Suggest me to Put dot or Comma Before Data in A:A in
Sheet 1 and Sheet2

Like .<30 or ,<60 and so on

It works perfectly.

But unfortunately my Friend dont know the why it happened

Could you please suggest me why it happened?

Thanks in Advance

Hardeep kanwar


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default What is the Difference Between <30 and .<30

You'll have to show us the entire Sumif functions for us to decipher the
difference between the two.

Regards,
Fred

"Hardeep kanwar" wrote in message
...
Actually I am using Sumif function

In A2:A5 in sheet 1 is Date

Like
<30
<60
30
60


In Sheet2 in A2:A300
30

<60
<30
<60 and so on

Sheet2 B2:B300

100
200
300
500
600
800 and so on

Now When I use =sumif(Sheet2!A:A,Sheet1!A2,Sheet2!B:B)

And it shows 0 in all Cells

But one of My friend Suggest me to Put dot or Comma Before Data in A:A in
Sheet 1 and Sheet2

Like .<30 or ,<60 and so on

It works perfectly.

But unfortunately my Friend dont know the why it happened

Could you please suggest me why it happened?

Thanks in Advance

Hardeep kanwar



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default What is the Difference Between <30 and .<30

Adding the dots makes the criteria a TEXT string.

Referring to a cell that holds something like <30 as the criteria is the
same as:

=SUMIF(rng1,"<30",rng2)

Which means sum rng2 if rng1 is less than 30.

<30 in the criteria range is a TEXT entry so the result will be 0.

--
Biff
Microsoft Excel MVP


"Hardeep kanwar" wrote in message
...
Actually I am using Sumif function

In A2:A5 in sheet 1 is Date

Like
<30
<60
30
60


In Sheet2 in A2:A300
30

<60
<30
<60 and so on

Sheet2 B2:B300

100
200
300
500
600
800 and so on

Now When I use =sumif(Sheet2!A:A,Sheet1!A2,Sheet2!B:B)

And it shows 0 in all Cells

But one of My friend Suggest me to Put dot or Comma Before Data in A:A in
Sheet 1 and Sheet2

Like .<30 or ,<60 and so on

It works perfectly.

But unfortunately my Friend don't know the why it happened

Could you please suggest me why it happened?

Thanks in Advance

Hardeep kanwar




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default What is the Difference Between <30 and .<30

I guess I should've showed how to overcome that situation!

Try it like this:

=SUMIF(Sheet2!A:A,"*"&Sheet1!A2,Sheet2!B:B)

That forces the criteria to be evaluated as the TEXT string "<30" rather
than the logical expression "less than 30".

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Adding the dots makes the criteria a TEXT string.

Referring to a cell that holds something like <30 as the criteria is the
same as:

=SUMIF(rng1,"<30",rng2)

Which means sum rng2 if rng1 is less than 30.

<30 in the criteria range is a TEXT entry so the result will be 0.

--
Biff
Microsoft Excel MVP


"Hardeep kanwar" wrote in
message ...
Actually I am using Sumif function

In A2:A5 in sheet 1 is Date

Like
<30
<60
30
60


In Sheet2 in A2:A300
30

<60
<30
<60 and so on

Sheet2 B2:B300

100
200
300
500
600
800 and so on

Now When I use =sumif(Sheet2!A:A,Sheet1!A2,Sheet2!B:B)

And it shows 0 in all Cells

But one of My friend Suggest me to Put dot or Comma Before Data in A:A in
Sheet 1 and Sheet2

Like .<30 or ,<60 and so on

It works perfectly.

But unfortunately my Friend don't know the why it happened

Could you please suggest me why it happened?

Thanks in Advance

Hardeep kanwar






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default What is the Difference Between <30 and .<30

Thanks Sir

Great Clarification and Perfect Function.

Works like a treat

Hardeep kanwar



"T. Valko" wrote:

I guess I should've showed how to overcome that situation!

Try it like this:

=SUMIF(Sheet2!A:A,"*"&Sheet1!A2,Sheet2!B:B)

That forces the criteria to be evaluated as the TEXT string "<30" rather
than the logical expression "less than 30".

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Adding the dots makes the criteria a TEXT string.

Referring to a cell that holds something like <30 as the criteria is the
same as:

=SUMIF(rng1,"<30",rng2)

Which means sum rng2 if rng1 is less than 30.

<30 in the criteria range is a TEXT entry so the result will be 0.

--
Biff
Microsoft Excel MVP


"Hardeep kanwar" wrote in
message ...
Actually I am using Sumif function

In A2:A5 in sheet 1 is Date

Like
<30
<60
30
60

In Sheet2 in A2:A300
30
<60
<30
<60 and so on

Sheet2 B2:B300

100
200
300
500
600
800 and so on

Now When I use =sumif(Sheet2!A:A,Sheet1!A2,Sheet2!B:B)

And it shows 0 in all Cells

But one of My friend Suggest me to Put dot or Comma Before Data in A:A in
Sheet 1 and Sheet2

Like .<30 or ,<60 and so on

It works perfectly.

But unfortunately my Friend don't know the why it happened

Could you please suggest me why it happened?

Thanks in Advance

Hardeep kanwar









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default What is the Difference Between <30 and .<30

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Hardeep kanwar" wrote in message
...
Thanks Sir

Great Clarification and Perfect Function.

Works like a treat

Hardeep kanwar



"T. Valko" wrote:

I guess I should've showed how to overcome that situation!

Try it like this:

=SUMIF(Sheet2!A:A,"*"&Sheet1!A2,Sheet2!B:B)

That forces the criteria to be evaluated as the TEXT string "<30" rather
than the logical expression "less than 30".

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Adding the dots makes the criteria a TEXT string.

Referring to a cell that holds something like <30 as the criteria is
the
same as:

=SUMIF(rng1,"<30",rng2)

Which means sum rng2 if rng1 is less than 30.

<30 in the criteria range is a TEXT entry so the result will be 0.

--
Biff
Microsoft Excel MVP


"Hardeep kanwar" wrote in
message ...
Actually I am using Sumif function

In A2:A5 in sheet 1 is Date

Like
<30
<60
30
60

In Sheet2 in A2:A300
30
<60
<30
<60 and so on

Sheet2 B2:B300

100
200
300
500
600
800 and so on

Now When I use =sumif(Sheet2!A:A,Sheet1!A2,Sheet2!B:B)

And it shows 0 in all Cells

But one of My friend Suggest me to Put dot or Comma Before Data in A:A
in
Sheet 1 and Sheet2

Like .<30 or ,<60 and so on

It works perfectly.

But unfortunately my Friend don't know the why it happened

Could you please suggest me why it happened?

Thanks in Advance

Hardeep kanwar









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
sum difference Kaye Excel Discussion (Misc queries) 3 October 10th 08 10:11 PM
subtract the time difference from another time difference Dannigirl Excel Discussion (Misc queries) 3 September 30th 07 03:47 PM
Difference Stevep-4 Excel Discussion (Misc queries) 11 October 4th 06 11:52 AM
Difference Sarah Talley Excel Worksheet Functions 6 October 17th 05 11:39 PM
charting a difference of 2 columns' w/o adding a difference column Wab Charts and Charting in Excel 4 July 27th 05 02:37 AM


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