#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Text and numbers

Hi, i have this code.
=SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)
It's working great, but only if retrieve numbers. But "$D$2:$D$100" i have
"Late 00:04:56" (text and numbers) and i need the result to be
"Late 00:04:56".

So, ...the code shows only numbers. I need the code to show text and numbers.

Can this be done? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Text and numbers

Try the below. Please note that this is an array formula. Within the cell in
edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

=INDEX(DB!$D$2:$D$100,MATCH(1,(DB!$A$2:$A$100=B6)* (DB!$B$2:$B$100=E3),0))


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


"puiuluipui" wrote:

Hi, i have this code.
=SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)
It's working great, but only if retrieve numbers. But "$D$2:$D$100" i have
"Late 00:04:56" (text and numbers) and i need the result to be
"Late 00:04:56".

So, ...the code shows only numbers. I need the code to show text and numbers.

Can this be done? Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default Text and numbers

Your formula can return only a number.
but we can add text to the result with
="Late " &
SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)

However, the format of the number may not be correct so try
="Late " &
TEXT(SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100),
"hh:mm:mm")

Let us know if this works for you
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"puiuluipui" wrote in message
...
Hi, i have this code.
=SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)
It's working great, but only if retrieve numbers. But "$D$2:$D$100" i have
"Late 00:04:56" (text and numbers) and i need the result to be
"Late 00:04:56".

So, ...the code shows only numbers. I need the code to show text and
numbers.

Can this be done? Thanks!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Text and numbers

It's working great!
Thanks!

"Jacob Skaria" a scris:

Try the below. Please note that this is an array formula. Within the cell in
edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

=INDEX(DB!$D$2:$D$100,MATCH(1,(DB!$A$2:$A$100=B6)* (DB!$B$2:$B$100=E3),0))


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


"puiuluipui" wrote:

Hi, i have this code.
=SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)
It's working great, but only if retrieve numbers. But "$D$2:$D$100" i have
"Late 00:04:56" (text and numbers) and i need the result to be
"Late 00:04:56".

So, ...the code shows only numbers. I need the code to show text and numbers.

Can this be done? Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Text and numbers

Hi, can you help me with one more problem? If the formula cant find anything
in a cell, can "on time" appear? If there is no entry the code to display a
message "on time".
Can this be done?
Thanks!

"Jacob Skaria" wrote:

Try the below. Please note that this is an array formula. Within the cell in
edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

=INDEX(DB!$D$2:$D$100,MATCH(1,(DB!$A$2:$A$100=B6)* (DB!$B$2:$B$100=E3),0))


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


"puiuluipui" wrote:

Hi, i have this code.
=SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)
It's working great, but only if retrieve numbers. But "$D$2:$D$100" i have
"Late 00:04:56" (text and numbers) and i need the result to be
"Late 00:04:56".

So, ...the code shows only numbers. I need the code to show text and numbers.

Can this be done? Thanks!



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

You can handle that using ISNA() function

=IF(ISNA(<formula),"On time",<formula)

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


"puiuluipui" wrote:

Hi, can you help me with one more problem? If the formula cant find anything
in a cell, can "on time" appear? If there is no entry the code to display a
message "on time".
Can this be done?
Thanks!

"Jacob Skaria" wrote:

Try the below. Please note that this is an array formula. Within the cell in
edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

=INDEX(DB!$D$2:$D$100,MATCH(1,(DB!$A$2:$A$100=B6)* (DB!$B$2:$B$100=E3),0))


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


"puiuluipui" wrote:

Hi, i have this code.
=SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)
It's working great, but only if retrieve numbers. But "$D$2:$D$100" i have
"Late 00:04:56" (text and numbers) and i need the result to be
"Late 00:04:56".

So, ...the code shows only numbers. I need the code to show text and numbers.

Can this be done? Thanks!

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Text and numbers

Hi, i can't make it work. I don't know how to brake this
=INDEX(DB!$C$2:$C$100;MATCH(1;(DB!$A$2:$A$100=B6)* (DB!$B$2:$B$100=G3);0))
into two formulas to fit in your code =IF(ISNA(<formula),"On time",<formula)
Can you help me with this?
Thanks allot!

"Jacob Skaria" wrote:

You can handle that using ISNA() function

=IF(ISNA(<formula),"On time",<formula)

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


"puiuluipui" wrote:

Hi, can you help me with one more problem? If the formula cant find anything
in a cell, can "on time" appear? If there is no entry the code to display a
message "on time".
Can this be done?
Thanks!

"Jacob Skaria" wrote:

Try the below. Please note that this is an array formula. Within the cell in
edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

=INDEX(DB!$D$2:$D$100,MATCH(1,(DB!$A$2:$A$100=B6)* (DB!$B$2:$B$100=E3),0))


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


"puiuluipui" wrote:

Hi, i have this code.
=SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)
It's working great, but only if retrieve numbers. But "$D$2:$D$100" i have
"Late 00:04:56" (text and numbers) and i need the result to be
"Late 00:04:56".

So, ...the code shows only numbers. I need the code to show text and numbers.

Can this be done? Thanks!

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Text and numbers

It's working!
I was tired last night. :)

Thanks!

"Jacob Skaria" a scris:

You can handle that using ISNA() function

=IF(ISNA(<formula),"On time",<formula)

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


"puiuluipui" wrote:

Hi, can you help me with one more problem? If the formula cant find anything
in a cell, can "on time" appear? If there is no entry the code to display a
message "on time".
Can this be done?
Thanks!

"Jacob Skaria" wrote:

Try the below. Please note that this is an array formula. Within the cell in
edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=<formula}"

=INDEX(DB!$D$2:$D$100,MATCH(1,(DB!$A$2:$A$100=B6)* (DB!$B$2:$B$100=E3),0))


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


"puiuluipui" wrote:

Hi, i have this code.
=SUMPRODUCT(--(B6=DB!$A$2:$A$100),--(E3=DB!$B$2:$B$100),DB!$D$2:$D$100)
It's working great, but only if retrieve numbers. But "$D$2:$D$100" i have
"Late 00:04:56" (text and numbers) and i need the result to be
"Late 00:04:56".

So, ...the code shows only numbers. I need the code to show text and numbers.

Can this be done? Thanks!

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 extract numbers from imported cell with text and numbers? jyin Excel Discussion (Misc queries) 3 March 28th 07 01:14 PM
VLOOKUP should compare numbers stored as text to plain numbers. VLOOKUP - Numbers stored as text Excel Worksheet Functions 0 March 31st 06 05:53 PM
Convert numbers stored as text to numbers Excel 2000 Darlene Excel Discussion (Misc queries) 6 January 31st 06 08:04 PM
How do I convert numbers stored as text with spaces to numbers Baffuor Excel Discussion (Misc queries) 1 May 24th 05 07:39 AM
How to convert Excel imported numbers from text to numbers? Alden Excel Discussion (Misc queries) 9 April 1st 05 09:51 PM


All times are GMT +1. The time now is 05:56 AM.

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"