Text Wrap

S

Steved

Hello from Steved

Is it possible to use a text wrap in a formula for example

=SUMPRODUCT(($H$1:$H$1="City Depot")*($A$28:$A$29="S")*$H$28:$H$29)

Can I do this or is their something I can add to the above formula for it to
reconize a Text Wrap
City
Depot
Thankyou.
 
D

Dave Peterson

You can type
....="city(alt-enter)depot")*
and it'll work.

You could also make it a formula
....="city" & char(10) & "depot")*
 
S

Steved

Thankyou.

Dave Peterson said:
You can type
....="city(alt-enter)depot")*
and it'll work.

You could also make it a formula
....="city" & char(10) & "depot")*
 
S

Steved

Hello from Steved

{=SUMPRODUCT(($H$1:$H$1="City"&CHAR(10)&"Depot")*($A$2:$A$27="M")*$H$2:$H$27)}

City
Depot

What Have I not done to accomplish the above to work in the above formula
please.
 
D

Dave Peterson

First, you don't need to array enter the formula.

Maybe...
=if($h$1<>"City"&CHAR(10)&"Depot",0,SUMPRODUCT(($A$2:$A$27="M")*$H$2:$H$27))

or maybe...

=($h$1="City"&CHAR(10)&"Depot") * SUMPRODUCT(($A$2:$A$27="M")*$H$2:$H$27)
 
S

Steved

Hello Dave from Steved

I'm very sorry all your formulas are ok, may be I should invest in reading
lesson.

Thanks for taking timeout.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top