Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
{=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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. |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Bernie, thanks for the reply. That's almost got it. It did put the
dash in the cell, however I forgot to mention that the purpose of the formula is to take the average of the last 4 cells of data that was entered. When I put that formula in, no matter how many cells are filled in, it doesn't average the last 4, the dash never goes away. P.S. I hope what I just typed made sense. Bernie Deitrick wrote: =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 |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I think a zero dropped out of my initial copying of your formula:
=IF(ISERROR(AVERAGE(N(OFFSET(A13,0,LARGE((G13:IV13 <"")*(COLUMN(INDIRECT("G:IV"))),{1,2,3,4})-1,1,1)))),"-",AVERAGE(N(OFFSET(A13,0,LARGE((G13:IV13<"")*(COL UMN(INDIRECT("G:IV"))),{1,2,3,4})-1,1,1)))) Worked for me. HTH, Bernie MS Excel MVP wrote in message ps.com... Bernie, thanks for the reply. That's almost got it. It did put the dash in the cell, however I forgot to mention that the purpose of the formula is to take the average of the last 4 cells of data that was entered. When I put that formula in, no matter how many cells are filled in, it doesn't average the last 4, the dash never goes away. P.S. I hope what I just typed made sense. Bernie Deitrick wrote: =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 |
#11
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
#12
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Bernie Deitrick wrote...
I think a zero dropped out of my initial copying of your formula: =IF(ISERROR(AVERAGE(N(OFFSET(A13,0, LARGE((G13:IV13<"")*(COLUMN(INDIRECT("G:IV"))),{ 1,2,3,4})-1,1,1)))),"-", AVERAGE(N(OFFSET(A13,0, LARGE((G13:IV13<"")*(COLUMN(INDIRECT("G:IV"))),{ 1,2,3,4})-1,1,1)))) .... This is an example of indiscriminate error trapping. There are easier (and more efficient) ways of trapping fewer than 4 nonblank cells in G13:IV13, and it may be useful to know whether there were error values in any of the cells in G13:IV13. Error trapping should only trap expected errors, not unexpected ones that could indicate problems in upstream systems/formulas/etc. |
#13
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
making a formula that will display a "word" in multile cells | Excel Worksheet Functions | |||
how to display subjects taught by a specific teacher upon selection of the teacher name in a drop down box | New Users to Excel | |||
How to display results to certain number of significant figures | Excel Discussion (Misc queries) | |||
How do you display Greek and Russian languages in excel? | Excel Discussion (Misc queries) | |||
Combine & Display “Fixed” & “Automatically Updated” Date Parts | Excel Worksheet Functions |