Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default How to display dash instead of #REF

{=AVERAGE(N(OFFSET(A13,
,LARGE((G13:IV13<"")*(COLUMN(INDIRECT("G:IV"))),{ 1,2,3,4})-1,1,1)))}

That's the formula that I'm working with. As the subject says, I need
a way for it to display a dash in the cell and not the #REF error. Is
there anyone out there that can help me out?

P.S. I didn't write the formula to begin with and know next to nothing
about excel

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default How to display dash instead of #REF

I can't duplicate a REF error, i get a #value but this should fix you:

=IF(ISREF(AVERAGE(N(OFFSET(A13,,LARGE((G13:IV13<" ")*(COLUMN(INDIRECT("G:IV"))),{1,2,3,4})-1,1,1)))),"-",AVERAGE(N(OFFSET(A13,,LARGE((G13:IV13<"")*(COLU MN(INDIRECT("G:IV"))),{1,2,3,4})-1,1,1))))
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


" wrote:

{=AVERAGE(N(OFFSET(A13,
,LARGE((G13:IV13<"")*(COLUMN(INDIRECT("G:IV"))),{ 1,2,3,4})-1,1,1)))}

That's the formula that I'm working with. As the subject says, I need
a way for it to display a dash in the cell and not the #REF error. Is
there anyone out there that can help me out?

P.S. I didn't write the formula to begin with and know next to nothing
about excel


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default How to display dash instead of #REF

John,

I put that formula in and then it showed #VALUE, not a dash. I don't
know if this is anything or not, but I've noticed that when I highlight
the cell when it has the original formula, the formula is enclosed in
brackets {...}. However, when I click in the formula field to edit it,
those brackets disappear. I've tried putting them back on the off
chance that they're screwing something up, but when I do, it completely
invalidates the formula and places everything in the cell as normal
text.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default How to display dash instead of #REF

Never seen those before in use in Excel, sorry my solution didn't work, I
could not get a #REF error so its kind of hard to troubleshoot. Maybe if you
post what data is being calculated.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


" wrote:

John,

I put that formula in and then it showed #VALUE, not a dash. I don't
know if this is anything or not, but I've noticed that when I highlight
the cell when it has the original formula, the formula is enclosed in
brackets {...}. However, when I click in the formula field to edit it,
those brackets disappear. I've tried putting them back on the off
chance that they're screwing something up, but when I do, it completely
invalidates the formula and places everything in the cell as normal
text.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default How to display dash instead of #REF

Thanks for the quick answers, I really appreciate it. As for the data,
it's just ones and zeroes. This is a spreadsheet for QA purposes for
phone calls. Basically, a 1 means that the requirement has been met, a
0 means that it hasn't. Now, if the requirement was N/A, then the cell
is to be left blank.

This isn't something that's dreadfully important that needs fixed, it's
more of a minor annoyance that I'd like to see go away. :) Hope this
helps.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 61
Default How to display dash instead of #REF

Why don't you try this: You go to the cell where you want the dash to appear,
right click the mouse, go to format cells, under category click on customs
and select this one: _(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_)

I think is the third from the bottom. It works for me. You'll see a dash
instead of the zeroes.

Byron720

" wrote:

John,

I put that formula in and then it showed #VALUE, not a dash. I don't
know if this is anything or not, but I've noticed that when I highlight
the cell when it has the original formula, the formula is enclosed in
brackets {...}. However, when I click in the formula field to edit it,
those brackets disappear. I've tried putting them back on the off
chance that they're screwing something up, but when I do, it completely
invalidates the formula and places everything in the cell as normal
text.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default How to display dash instead of #REF

Well, I appreciate the suggestion however that didn't work either.
Besides, I'm not getting 0's in the cell, it's a #REF error.


Byron720 wrote:
Why don't you try this: You go to the cell where you want the dash to appear,
right click the mouse, go to format cells, under category click on customs
and select this one: _(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_)

I think is the third from the bottom. It works for me. You'll see a dash
instead of the zeroes.


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How to display dash instead of #REF

=IF(ISERROR(AVERAGE(N(OFFSET(A13,LARGE((G13:IV13< "")*(COLUMN(INDIRECT("G:IV"))),{1,2,3,4})-1,1,1)))),"-",AVERAGE(N(OFFSET(A13,LARGE((G13:IV13<"")*(COLUM N(INDIRECT("G:IV"))),{1,2,3,4})-1,1,1))))

All entered using Ctrl-Shift-Enter.

HTH,
Bernie
MS Excel MVP


wrote in message ps.com...
Well, I appreciate the suggestion however that didn't work either.
Besides, I'm not getting 0's in the cell, it's a #REF error.


Byron720 wrote:
Why don't you try this: You go to the cell where you want the dash to appear,
right click the mouse, go to format cells, under category click on customs
and select this one: _(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_)

I think is the third from the bottom. It works for me. You'll see a dash
instead of the zeroes.




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default How to display dash instead of #REF

Thanks for all the assistance on this issue everyone and sorry it took
me so long to get back to this topic. Harlan, the second formula that
you provided is what worked wonderfully for me.

Harlan Grove wrote:
wrote...
{=AVERAGE(N(OFFSET(A13,,
LARGE((G13:IV13<"")*(COLUMN(INDIRECT("G:IV"))),{ 1,2,3,4})-1,1,1)))}

...

First, it helps to understand what this formula is doing. It's
calculating the average of 4 different cells. Those cells are the 4
rightmost nonempty cells in G13:IV13. If there are fewer than 4
nonempty cells in that range, your formula returns #REF!. If you only
want the average when there are at least 4 nonblank cells, use the
array formula

=IF(COUNTA(G13:IV13)=4,AVERAGE(N(OFFSET(A13,,
LARGE((G13:IV13<"")*COLUMN(G13:IV13),{1,2,3,4})-1,1,1))),"-")

Note that this replaces INDIRECT("G:IV") with G13:IV13 in the COLUMN
call. This may not be strictly necessary, but it returns the same
array, and it'll automatically adjust the range reference if you insert
or delete columns between G and IV.

Note also that both formulas will treat any cells containing text as
numeric zeros, so the average of {1,2,3,"x"} will be the same as the
average of {1,2,3,0} rather than {1,2,3}. If you want the average only
of cells containing numbers, use the array formula

=IF(COUNT(G13:IV13)=4,AVERAGE(N(OFFSET(A13,,
LARGE(ISNUMBER(G13:IV13)*COLUMN(G13:IV13),{1,2,3,4 })-1,1,1))),"-")




  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default How to display dash instead of #REF

If you know that the values are all correct and that it's likely a valid
error (like there's no data for any particular entry), you should be able to
fix it with an IF and ISERR statement. In the cell where your formula is,
copy the text of the formula and then:
=IF(ISERR(pasteformula),"-",pasteformula)

This will give you a dash if there's any kind of calculation error, and will
give you the result if it's valid. Any other character will print as long as
it's in quotes in the seconf comma.

-beth

" wrote:

{=AVERAGE(N(OFFSET(A13,
,LARGE((G13:IV13<"")*(COLUMN(INDIRECT("G:IV"))),{ 1,2,3,4})-1,1,1)))}

That's the formula that I'm working with. As the subject says, I need
a way for it to display a dash in the cell and not the #REF error. Is
there anyone out there that can help me out?

P.S. I didn't write the formula to begin with and know next to nothing
about excel


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
making a formula that will display a "word" in multile cells xspacex Excel Worksheet Functions 1 July 30th 06 02:14 AM
how to display subjects taught by a specific teacher upon selection of the teacher name in a drop down box janice fernandes New Users to Excel 5 March 9th 06 12:24 PM
How to display results to certain number of significant figures Coeliac Excel Discussion (Misc queries) 1 January 10th 06 12:04 PM
How do you display Greek and Russian languages in excel? Mark Hayden Excel Discussion (Misc queries) 1 August 1st 05 08:06 AM
Combine & Display “Fixed” & “Automatically Updated” Date Parts texcel Excel Worksheet Functions 1 November 1st 04 05:38 PM


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