Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Adding if error to a formula

Hello, I'm currently using this formula, which works perfectly :
=INDEX(Calls_Received_All!D:D,MATCH(1,(Calls_Recei ved_All!B1:B10000=D2)*(Calls_Received_All!C1:C1000 0=D1),0))

I know to enter ctrl-shift-enter. However if I have not entered data yet
for one of the fields the formula is referring to I get: #N/A.

I would like the cell to be blank if the reference cells are blank.

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Adding if error to a formula

Hi Jim

One way
=IF(COUNTA(D1:D2)<2,"",your_formula)

--
Regards
Roger Govier

"Jim" wrote in message
...
Hello, I'm currently using this formula, which works perfectly :
=INDEX(Calls_Received_All!D:D,MATCH(1,(Calls_Recei ved_All!B1:B10000=D2)*(Calls_Received_All!C1:C1000 0=D1),0))

I know to enter ctrl-shift-enter. However if I have not entered data yet
for one of the fields the formula is referring to I get: #N/A.

I would like the cell to be blank if the reference cells are blank.

Thank you


  #3   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Adding if error to a formula

That did not work. Any other suggestions. Oh, and thanks for helping me.

"Roger Govier" wrote:

Hi Jim

One way
=IF(COUNTA(D1:D2)<2,"",your_formula)

--
Regards
Roger Govier

"Jim" wrote in message
...
Hello, I'm currently using this formula, which works perfectly :
=INDEX(Calls_Received_All!D:D,MATCH(1,(Calls_Recei ved_All!B1:B10000=D2)*(Calls_Received_All!C1:C1000 0=D1),0))

I know to enter ctrl-shift-enter. However if I have not entered data yet
for one of the fields the formula is referring to I get: #N/A.

I would like the cell to be blank if the reference cells are blank.

Thank you



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Adding if error to a formula

How did it not work?

It looks like it should.

Jim wrote:

That did not work. Any other suggestions. Oh, and thanks for helping me.

"Roger Govier" wrote:

Hi Jim

One way
=IF(COUNTA(D1:D2)<2,"",your_formula)

--
Regards
Roger Govier

"Jim" wrote in message
...
Hello, I'm currently using this formula, which works perfectly :
=INDEX(Calls_Received_All!D:D,MATCH(1,(Calls_Recei ved_All!B1:B10000=D2)*(Calls_Received_All!C1:C1000 0=D1),0))

I know to enter ctrl-shift-enter. However if I have not entered data yet
for one of the fields the formula is referring to I get: #N/A.

I would like the cell to be blank if the reference cells are blank.

Thank you




--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Adding if error to a formula

getting the same error. Still ctrl-shift-enter, right?

"Dave Peterson" wrote:

How did it not work?

It looks like it should.

Jim wrote:

That did not work. Any other suggestions. Oh, and thanks for helping me.

"Roger Govier" wrote:

Hi Jim

One way
=IF(COUNTA(D1:D2)<2,"",your_formula)

--
Regards
Roger Govier

"Jim" wrote in message
...
Hello, I'm currently using this formula, which works perfectly :
=INDEX(Calls_Received_All!D:D,MATCH(1,(Calls_Recei ved_All!B1:B10000=D2)*(Calls_Received_All!C1:C1000 0=D1),0))

I know to enter ctrl-shift-enter. However if I have not entered data yet
for one of the fields the formula is referring to I get: #N/A.

I would like the cell to be blank if the reference cells are blank.

Thank you



--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Adding if error to a formula

Yep.

But the error could be caused by not finding a match--not because you haven't
entered the data.

=IF(COUNTA(D1:D2)<2,"not enough data",
IF(ISNA(MATCH(1,(Calls_Received_All!B1:B10000=D2)
*(Calls_Received_All!C1:C10000=D1),0)),"no match",
INDEX(Calls_Received_All!D:D,
MATCH(1,(Calls_Received_All!B1:B10000=D2)
*(Calls_Received_All!C1:C10000=D1),0))))

Still an array formula.

When you get it working, change both those strings to "" (if you want).

Jim wrote:

getting the same error. Still ctrl-shift-enter, right?

"Dave Peterson" wrote:

How did it not work?

It looks like it should.

Jim wrote:

That did not work. Any other suggestions. Oh, and thanks for helping me.

"Roger Govier" wrote:

Hi Jim

One way
=IF(COUNTA(D1:D2)<2,"",your_formula)

--
Regards
Roger Govier

"Jim" wrote in message
...
Hello, I'm currently using this formula, which works perfectly :
=INDEX(Calls_Received_All!D:D,MATCH(1,(Calls_Recei ved_All!B1:B10000=D2)*(Calls_Received_All!C1:C1000 0=D1),0))

I know to enter ctrl-shift-enter. However if I have not entered data yet
for one of the fields the formula is referring to I get: #N/A.

I would like the cell to be blank if the reference cells are blank.

Thank you



--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default Adding if error to a formula

That was perfect - thanks

"Dave Peterson" wrote:

Yep.

But the error could be caused by not finding a match--not because you haven't
entered the data.

=IF(COUNTA(D1:D2)<2,"not enough data",
IF(ISNA(MATCH(1,(Calls_Received_All!B1:B10000=D2)
*(Calls_Received_All!C1:C10000=D1),0)),"no match",
INDEX(Calls_Received_All!D:D,
MATCH(1,(Calls_Received_All!B1:B10000=D2)
*(Calls_Received_All!C1:C10000=D1),0))))

Still an array formula.

When you get it working, change both those strings to "" (if you want).

Jim wrote:

getting the same error. Still ctrl-shift-enter, right?

"Dave Peterson" wrote:

How did it not work?

It looks like it should.

Jim wrote:

That did not work. Any other suggestions. Oh, and thanks for helping me.

"Roger Govier" wrote:

Hi Jim

One way
=IF(COUNTA(D1:D2)<2,"",your_formula)

--
Regards
Roger Govier

"Jim" wrote in message
...
Hello, I'm currently using this formula, which works perfectly :
=INDEX(Calls_Received_All!D:D,MATCH(1,(Calls_Recei ved_All!B1:B10000=D2)*(Calls_Received_All!C1:C1000 0=D1),0))

I know to enter ctrl-shift-enter. However if I have not entered data yet
for one of the fields the formula is referring to I get: #N/A.

I would like the cell to be blank if the reference cells are blank.

Thank you



--

Dave Peterson


--

Dave Peterson

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
Error adding up times in HH:MM format [email protected] Excel Discussion (Misc queries) 2 September 26th 08 11:03 AM
Adding individual error bars Harthaus Charts and Charting in Excel 1 February 5th 08 09:22 PM
Sum error when adding 31 days kmaki Excel Discussion (Misc queries) 6 September 11th 07 10:09 PM
Error message when adding a name matelot Charts and Charting in Excel 3 May 11th 07 02:05 PM
#VALUE! error adding cells Frustrated computer user Excel Discussion (Misc queries) 1 May 19th 05 07:20 PM


All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"