Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 181
Default Sumproduct with both number and text formats

I currently use the following formula

=SUMPRODUCT(($J$5:$J$4000=$T$4007)*($AS$5:$AS$4000 <0)*($AS$5:$AS$4000))

But it does not seems to work if the value in column J is formated as text (
ex 3644 or '3644)

Is there a way to modify the formula so that it does not matter if the value
in column J is foramted as a number or text?

Thanks

ce
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Sumproduct with both number and text formats

try using -- on the numbers as
=SUMPRODUCT((--$J$5:$J$4000=$T$4007)*($AS$5:$AS$4000<0)*($AS$5:$A S$4000))

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Curtis" wrote:

I currently use the following formula

=SUMPRODUCT(($J$5:$J$4000=$T$4007)*($AS$5:$AS$4000 <0)*($AS$5:$AS$4000))

But it does not seems to work if the value in column J is formated as text (
ex 3644 or '3644)

Is there a way to modify the formula so that it does not matter if the value
in column J is foramted as a number or text?

Thanks

ce

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 181
Default Sumproduct with both number and text formats

Thanks

I have another question of a simular nature. I also use the formula below
but run into the same problem when the value in T1878 is formated as text.

=IF(T1878="","",VLOOKUP(T1878,Rates!$B$2:$F$237,3+ ISNUMBER(MATCH($J1878,'Tech ID''s'!$B$2:$B$10,0)),0))

Any ideas

Thanks

ce

"Martin Fishlock" wrote:

try using -- on the numbers as
=SUMPRODUCT((--$J$5:$J$4000=$T$4007)*($AS$5:$AS$4000<0)*($AS$5:$A S$4000))

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Curtis" wrote:

I currently use the following formula

=SUMPRODUCT(($J$5:$J$4000=$T$4007)*($AS$5:$AS$4000 <0)*($AS$5:$AS$4000))

But it does not seems to work if the value in column J is formated as text (
ex 3644 or '3644)

Is there a way to modify the formula so that it does not matter if the value
in column J is foramted as a number or text?

Thanks

ce

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sumproduct with both number and text formats

Maybe you need to coerce to a number

=IF(T1878="","",VLOOKUP(--T1878,Rates!$B$2:$F$237,3+ISNUMBER(MATCH($J1878,'T ech
ID''s'!$B$2:$B$10,0)),0))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Curtis" wrote in message
...
Thanks

I have another question of a simular nature. I also use the formula below
but run into the same problem when the value in T1878 is formated as text.

=IF(T1878="","",VLOOKUP(T1878,Rates!$B$2:$F$237,3+ ISNUMBER(MATCH($J1878,'Tech
ID''s'!$B$2:$B$10,0)),0))

Any ideas

Thanks

ce

"Martin Fishlock" wrote:

try using -- on the numbers as
=SUMPRODUCT((--$J$5:$J$4000=$T$4007)*($AS$5:$AS$4000<0)*($AS$5:$A S$4000))

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Curtis" wrote:

I currently use the following formula

=SUMPRODUCT(($J$5:$J$4000=$T$4007)*($AS$5:$AS$4000 <0)*($AS$5:$AS$4000))

But it does not seems to work if the value in column J is formated as
text (
ex 3644 or '3644)

Is there a way to modify the formula so that it does not matter if the
value
in column J is foramted as a number or text?

Thanks

ce



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 181
Default Sumproduct with both number and text formats

Thanks to all

"Bob Phillips" wrote:

Maybe you need to coerce to a number

=IF(T1878="","",VLOOKUP(--T1878,Rates!$B$2:$F$237,3+ISNUMBER(MATCH($J1878,'T ech
ID''s'!$B$2:$B$10,0)),0))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Curtis" wrote in message
...
Thanks

I have another question of a simular nature. I also use the formula below
but run into the same problem when the value in T1878 is formated as text.

=IF(T1878="","",VLOOKUP(T1878,Rates!$B$2:$F$237,3+ ISNUMBER(MATCH($J1878,'Tech
ID''s'!$B$2:$B$10,0)),0))

Any ideas

Thanks

ce

"Martin Fishlock" wrote:

try using -- on the numbers as
=SUMPRODUCT((--$J$5:$J$4000=$T$4007)*($AS$5:$AS$4000<0)*($AS$5:$A S$4000))

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Curtis" wrote:

I currently use the following formula

=SUMPRODUCT(($J$5:$J$4000=$T$4007)*($AS$5:$AS$4000 <0)*($AS$5:$AS$4000))

But it does not seems to work if the value in column J is formated as
text (
ex 3644 or '3644)

Is there a way to modify the formula so that it does not matter if the
value
in column J is foramted as a number or text?

Thanks

ce




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
Sumproduct with either text of number format Curtis Excel Worksheet Functions 4 March 5th 07 09:56 PM
Custom number formats in TEXT function MatthewB Excel Worksheet Functions 4 June 28th 06 09:05 PM
Text, Number and Date formats excel 2003 driving experienced user E F Bat Excel Discussion (Misc queries) 1 January 6th 06 07:10 PM
Sumproduct with different number formats Patty Excel Discussion (Misc queries) 0 April 11th 05 07:12 PM
Can you retain different text formats when merging text? Genmon Excel Discussion (Misc queries) 1 January 20th 05 05:09 PM


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