Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Why doesn't this work?

=CONCATENATE(IF(B30,B3,""),IF(C30,C3&", ",""),IF(D30,D3&",
",""),IF(E30,E3&", ",""))

When any of the logicals are false, the formula still displays the ,

Assistance please?

Thank you

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Why doesn't this work?

I can't reproduce that!

Please give the values of all cells involved and what result you get.

It may help to evaluate your formula step by step, using ToolsFormula AuditingEvaluate Formula (not too old versions of Excel)


--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"yovation" wrote in message ups.com...
| =CONCATENATE(IF(B30,B3,""),IF(C30,C3&", ",""),IF(D30,D3&",
| ",""),IF(E30,E3&", ",""))
|
| When any of the logicals are false, the formula still displays the ,
|
| Assistance please?
|
| Thank you
|


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Why doesn't this work?

That is too strange. I created a new sheet and the formula works.
wow. I have no idea what happened.

Thank you for your help!!

David

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Why doesn't this work?

Your formula seems to work for me.
Are you referring to a comma displaying at the end or beginning or what? I
set all criteria to zero and there were no commas displayed.

--

"yovation" wrote in message
ups.com...
=CONCATENATE(IF(B30,B3,""),IF(C30,C3&", ",""),IF(D30,D3&",
",""),IF(E30,E3&", ",""))

When any of the logicals are false, the formula still displays the ,

Assistance please?

Thank you



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Why doesn't this work?

yovation wrote...
=CONCATENATE(IF(B30,B3,""),IF(C30,C3&", ",""),
IF(D30,D3&", ",""),IF(E30,E3&", ",""))

When any of the logicals are false, the formula still displays the ,


To see what's happening, enter FALSE in, say, X99 and =X990 in Y99.
Unless you're running under the Transition Formula Evaluation setting,
the Y99 formula will return TRUE. Why? Because in Excel's wonderful
default semantics, any numeric value < any text value < FALSE < TRUE.

Next, if you can use & inside the IF calls, use it outside the IF
calls too. There's never a good reason to use CONCATENATE.

So could B3:E3 contain either numbers or booleans (TRUE/FALSE)? You
want only positive numbers displayed?

If you want only the positive numbers included, and commas separating
multiple ones, you need to use something like this.

=SUBSTITUTE(TRIM(IF(COUNTIF(B3,"0"),B3,"")&" "
&IF(COUNTIF(C3,"0"),C3,"")&" "&IF(COUNTIF(D3,"0"),D3,"")&" "
&IF(COUNTIF(E3,"0"),E3,""))," ",", ")



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Why doesn't this work?

yovation wrote...
=CONCATENATE(IF(B30,B3,""),IF(C30,C3&", ",""),
IF(D30,D3&", ",""),IF(E30,E3&", ",""))

When any of the logicals are false, the formula still displays the ,


To see what's happening, enter FALSE in, say, X99 and =X990 in Y99.
Unless you're running under the Transition Formula Evaluation setting,
the Y99 formula will return TRUE. Why? Because in Excel's wonderful
default semantics, any numeric value < any text value < FALSE < TRUE.

Next, if you can use & inside the IF calls, use it outside the IF
calls too. There's never a good reason to use CONCATENATE.

So could B3:E3 contain either numbers or booleans (TRUE/FALSE)? You
want only positive numbers displayed?

If you want only the positive numbers included, and commas separating
multiple ones, you need to use something like this.

=SUBSTITUTE(TRIM(IF(COUNTIF(B3,"0"),B3,"")&" "
&IF(COUNTIF(C3,"0"),C3,"")&" "&IF(COUNTIF(D3,"0"),D3,"")&" "
&IF(COUNTIF(E3,"0"),E3,""))," ",", ")

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Why doesn't this work?

hmmm... I decided to try the formula on a clean sheet, and it works
with new data.

Then I tried it again on my original data, and the problem continues
to occur. So I think Excel is seeing something from my data that is
0 in a cell that data isn't visible in. I don't have a clue on how

to go about figuring that out. I did a (TRIM(CLEAN( on the data, but
that doesn't make a difference. Very strange.

Thank you.
David

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 227
Default Why doesn't this work?

I don't know how you produce the values in the four cells, but there
could be a rounding error, inherent in storing decimal numbers in a
binary format, that could cause calculations to produce a very small
number but display as zero.

If B3, C3, etc are supposed to be integers, you can use ROUND(B3,0)0,
etc, to counteract this. If not, you could use ROUND in B3, etc, or
in formulas those cells depend upon, to eliminate the error.

Mark Lincoln

On Oct 18, 2:13 pm, yovation wrote:
hmmm... I decided to try the formula on a clean sheet, and it works
with new data.

Then I tried it again on my original data, and the problem continues
to occur. So I think Excel is seeing something from my data that is0 in a cell that data isn't visible in. I don't have a clue on how

to go about figuring that out. I did a (TRIM(CLEAN( on the data, but
that doesn't make a difference. Very strange.

Thank you.
David



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Why doesn't this work?

=IF(COUNTA(B3:E3),SUBSTITUTE(IF(B30,B3&",","")&IF (C30,C3&",","")&IF(D30,D3&",","")&IF(E30,E3,"") ,",","",COUNTA(B3:E3)),"")


"yovation" wrote:

=CONCATENATE(IF(B30,B3,""),IF(C30,C3&", ",""),IF(D30,D3&",
",""),IF(E30,E3&", ",""))

When any of the logicals are false, the formula still displays the ,

Assistance please?

Thank you


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
Counting dates in multiple work sheets and work books Savage Excel Discussion (Misc queries) 0 December 19th 05 11:41 PM
I wish to save my Excell work in my work sheets CLC 37 Qld Excel Worksheet Functions 0 May 24th 05 10:56 AM
Is there away to keep "auto save" from jumping to the first work sheet in the work book? Marc New Users to Excel 2 April 21st 05 01:27 AM
simultaneously work in a work book with other users Sweets Excel Discussion (Misc queries) 1 April 18th 05 07:35 PM
Spin button in a work sheet - how do I make it work? [email protected] Excel Worksheet Functions 1 April 7th 05 08:43 PM


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