Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Cell value in a formula -- Indirect function? Help please...

Hello all, need some help. I want to use the cell output in the
formula. There are two outputs from the secondary worksheet in the D
and H columns. A month and a number. They are if then formulas
though, on the secondary worksheet, based on other cells in that
secondary sheet.

I have the following formula on my primary sheet:

=SUMIF(Ret_Rate_Worksheet!D10:D109,"January",Ret_R ate_Worksheet!H10:H109)

On the Ret_Rate worksheet, the 'January' value is a calculated value
and the value in the H column is also a calculated value. What should
my formula look like for it to work? If I manually type in January in
the D field and some numbers in the H field, the formula works.
However, I want excel to use the 'value' or output/result on the other
worksheet in the formula I have on my other worksheet. I think I need
to use the indirect function??? Help please...

-Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Cell value in a formula -- Indirect function? Help please...

hi Rob
One question regarding the calculated values in column D: Are they text
values or dates. From your description I ssume you have calcualted
dates (and formated them to show only the month). Maybe you can post
your formula in column D and some example data

Frank

Rob B wrote:
Hello all, need some help. I want to use the cell output in the
formula. There are two outputs from the secondary worksheet in the D
and H columns. A month and a number. They are if then formulas
though, on the secondary worksheet, based on other cells in that
secondary sheet.

I have the following formula on my primary sheet:


=SUMIF(Ret_Rate_Worksheet!D10:D109,"January",Ret_R ate_Worksheet!H10:H10
9)

On the Ret_Rate worksheet, the 'January' value is a calculated value
and the value in the H column is also a calculated value. What should
my formula look like for it to work? If I manually type in January

in
the D field and some numbers in the H field, the formula works.
However, I want excel to use the 'value' or output/result on the

other
worksheet in the formula I have on my other worksheet. I think I

need
to use the indirect function??? Help please...

-Rob



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Cell value in a formula -- Indirect function? Help please...

Hi Frank,

D is actually just a date that formats to just the month "January"
(custom format: MMMM), I have another field "Day employee left the
company". The D cell is just the output of the other field that shows
just the month. I suppose it is a bit repetitive, but that is so the
user can see the month isolated. The other field 'h' is a calculated
value based on employee's years of service with the company. (end
day-start day) It is a long if/then formula that basically says
if<1year, .5,=1and<3,1 and 3, 1.75. Suffice to say, I would like my
formula

=SUMIF(Ret_Rate_Worksheet!D10:D109,"January",Ret_R ate_Worksheet!H10:H109)

To look at the month only date field and for all Januarys, add up the
corresponding years of experience weighting. I then plan on using the
same formula, but substituting "February" for January and then
following that down the list for the other 10 months. The only
problem I am having is that excel does not seem to see January (which
is what I see, but instead sees the formula or the date I guess. I
want it to use the value that I see, in this case "January".

Any help would be appreciated.

Thanks,

Rob

On Wed, 4 Feb 2004 19:04:24 +0100, "Frank Kabel"
wrote:

hi Rob
One question regarding the calculated values in column D: Are they text
values or dates. From your description I ssume you have calcualted
dates (and formated them to show only the month). Maybe you can post
your formula in column D and some example data

Frank


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Cell value in a formula -- Indirect function? Help please...

Hi Rob
one way: try the following formula:
=SUMPRODUCT(--(MONTH(Ret_Rate_Worksheet!$D$10:$D$109)=1),(Ret_Ra te_Work
sheet!$H$10:$H$109))
and change the 1 for your other months


HTH
Frank


Rob B wrote:
Hi Frank,

D is actually just a date that formats to just the month "January"
(custom format: MMMM), I have another field "Day employee left the
company". The D cell is just the output of the other field that

shows
just the month. I suppose it is a bit repetitive, but that is so the
user can see the month isolated. The other field 'h' is a calculated
value based on employee's years of service with the company. (end
day-start day) It is a long if/then formula that basically says
if<1year, .5,=1and<3,1 and 3, 1.75. Suffice to say, I would like

my
formula


=SUMIF(Ret_Rate_Worksheet!D10:D109,"January",Ret_R ate_Worksheet!H10:H10
9)

To look at the month only date field and for all Januarys, add up the
corresponding years of experience weighting. I then plan on using

the
same formula, but substituting "February" for January and then
following that down the list for the other 10 months. The only
problem I am having is that excel does not seem to see January (which
is what I see, but instead sees the formula or the date I guess. I
want it to use the value that I see, in this case "January".

Any help would be appreciated.

Thanks,

Rob

On Wed, 4 Feb 2004 19:04:24 +0100, "Frank Kabel"
wrote:

hi Rob
One question regarding the calculated values in column D: Are they
text values or dates. From your description I ssume you have
calcualted dates (and formated them to show only the month). Maybe
you can post your formula in column D and some example data

Frank



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
Copying a formula containing the INDIRECT function Pelham[_2_] Excel Worksheet Functions 7 August 30th 09 06:54 AM
Name of named formula used in an INDIRECT function Werner Rohrmoser Excel Worksheet Functions 4 August 21st 08 11:19 AM
Cell reference OR INDIRECT function Excel ESG Excel Worksheet Functions 2 June 11th 07 11:26 AM
Can INDIRECT function reference a cell that contains a formula Steve E Excel Worksheet Functions 13 August 23rd 06 10:49 PM
include INDIRECT function into SUMPRODUCT formula markx Excel Worksheet Functions 1 November 9th 05 05:04 PM


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