LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Modify formula to display Null

In worksheet #1
Each row contains a unique name like: David, Joe etc. (in column A) and

it's data like: salary etc. (in columns B,C etc.). Last column contains

unique groupName like group1, group2 etc.

In worksheet #2
Each row contains a unique group name like: group1, group2 etc. (in
column A) and calculated data like: groupAverageSalary etc. (in columns

B,C etc.)

In worksheet#2 I calaculate group's data dynamic according to
user input in worksheet#1 (For example: groupAverageSalary for group1
will be calculated as the average salary of all the people who are
members in group1

I used:
=SUMIF(worksheet#1!E1:E15,worksheet#2!A1,worksheet #1!B1:B15)/COUNTIF(worksheet#1!E1:E15,worksheet#2!A1)

My problem:
In case that there no values for some group in worksheet#1 column B
I want to display NULL in worksheet#2 column B (my formula returns 0).

How can I changed my formula to do this ?

worksheet#1
A,B,... ,E
Name, salary, ..., groupName
David, 2000$, ..., group1
Joe, 1000$, ..., group2


worksheet#2
A,B, ...
groupName, averageSalary, ...
group1, 2000$, ...
group2, 1000$

 
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
How not to display null values (0's and/or #DIV/0!'s? absinthe Excel Discussion (Misc queries) 2 October 9th 08 11:09 PM
De-activating null value display ICTag New Users to Excel 1 June 12th 06 09:31 PM
Modify a Formula to Display Blank carl Excel Worksheet Functions 2 July 13th 05 02:22 PM
PivotTable (blank) cells won't display NULL! Abdul Malik Said Excel Programming 3 March 24th 05 08:32 PM
Find and Display / Modify code Soniya Excel Programming 0 October 12th 04 01:10 PM


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