Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Adding text to the start of a formula

Hi I am trying to add text to the start of a forumula without success below
is what I am trying to use. Please help

Joel

=B2&"sold "&,=sum(D8:D20)
--
N/A
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Adding text to the start of a formula

Just get rid of the ",=" before SUM.

=B2 & " sold " & SUM(D8:D20)

The spaces I've added aren't strictly necessary, but makes it easier to
read.

--
Ian
--
"Joel" wrote in message
...
Hi I am trying to add text to the start of a forumula without success
below
is what I am trying to use. Please help

Joel

=B2&"sold "&,=sum(D8:D20)
--
N/A



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Adding text to the start of a formula

Hi thanks for all your help I tried them all and all I get is a blank cell
with a £ sign in it more help would be appreciated

Joel
--
N/A


"IanC" wrote:

Just get rid of the ",=" before SUM.

=B2 & " sold " & SUM(D8:D20)

The spaces I've added aren't strictly necessary, but makes it easier to
read.

--
Ian
--
"Joel" wrote in message
...
Hi I am trying to add text to the start of a forumula without success
below
is what I am trying to use. Please help

Joel

=B2&"sold "&,=sum(D8:D20)
--
N/A




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Adding text to the start of a formula

Hi Joel

What do you have in B2 and in D8:D20?
In a spare cell, type =B2. Do you get what B2 contains?
Try the same thing with =SUM(D8:D20). Is this correct?
Where does the £ sign come from? That's not in your formula, so I'm assuming
you've formatted as currency. If so, it shouldn't show the £ sign unless
there's something after it.

--
Ian
--
"Joel" wrote in message
...
Hi thanks for all your help I tried them all and all I get is a blank cell
with a £ sign in it more help would be appreciated

Joel
--
N/A


"IanC" wrote:

Just get rid of the ",=" before SUM.

=B2 & " sold " & SUM(D8:D20)

The spaces I've added aren't strictly necessary, but makes it easier to
read.

--
Ian
--
"Joel" wrote in message
...
Hi I am trying to add text to the start of a forumula without success
below
is what I am trying to use. Please help

Joel

=B2&"sold "&,=sum(D8:D20)
--
N/A






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Adding text to the start of a formula

=A1&" Sold " &B1& " Bottles of coke."

returns:
Kent Sold 15 Bottles of coke.



"Joel" wrote:

Hi I am trying to add text to the start of a forumula without success below
is what I am trying to use. Please help

Joel

=B2&"sold "&,=sum(D8:D20)
--
N/A



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Adding text to the start of a formula

hi
close
=B2&" "&"sold"&" "&Sum(D8:D20)
the exta " " are for spaces between the words and numbers.
worked in xp on tuesday.

regards
FSt1

"Joel" wrote:

Hi I am trying to add text to the start of a forumula without success below
is what I am trying to use. Please help

Joel

=B2&"sold "&,=sum(D8:D20)
--
N/A

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 157
Default Adding text to the start of a formula

=B2&" "&"sold"&" "&Sum(D8:D20)
the exta " " are for spaces between the words and numbers.
worked in xp on tuesday.


A tidier way is to put the spaces either side of the "sold" string (ie "
sold "). it gets rid of 2 amperands and 4 double-quotes.

=B2&" sold "&Sum(D8:D20)

--
Ian
--


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Adding text to the start of a formula

hi
you're right but i wanted them to show. which is why i pointed them out.
also give a better understanding of how it all works. sometimes the hard way
teaches more.

regards
FSt1

"IanC" wrote:

=B2&" "&"sold"&" "&Sum(D8:D20)
the exta " " are for spaces between the words and numbers.
worked in xp on tuesday.


A tidier way is to put the spaces either side of the "sold" string (ie "
sold "). it gets rid of 2 amperands and 4 double-quotes.

=B2&" sold "&Sum(D8:D20)

--
Ian
--



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
formula for adding up 3 different start and finish times Shazza Excel Worksheet Functions 4 May 24th 10 09:15 PM
adding text to the end of a formula Lodge Excel Worksheet Functions 1 June 26th 09 12:36 AM
Adding text to a formula horseman Excel Discussion (Misc queries) 3 April 19th 06 02:19 PM
Adding a formula to a cell that already has text [email protected] Excel Programming 2 October 7th 05 05:12 PM
Adding text to the result of a formula? Robbie in Houston Excel Worksheet Functions 2 February 28th 05 12:00 AM


All times are GMT +1. The time now is 12:51 PM.

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"