Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John
 
Posts: n/a
Default Problem with Formula

I am trying to re-jig a formula that shows hours worked for a particular
day, to showing any absence detail shown for a particular employee. I have
the fllowing formula which doesn't work and I'm not sure why. A similiar
formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is 09/05/05;
StaffNumber = 100 and the value that is within the AbsenceDetail cell for
the 09/05/05 for # 100 is Holiay, except my formula returns 0 (I have it
formatted as General)

Any ideas appreciated


Thanks


  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

In case AbsenceDetail houses text-formatted numbers instead of true numbers:

=SUMPRODUCT(--(DailyDate=F67),--(StaffNumber=$C$11),--AbsenceDetail)

John wrote:
I am trying to re-jig a formula that shows hours worked for a particular
day, to showing any absence detail shown for a particular employee. I have
the fllowing formula which doesn't work and I'm not sure why. A similiar
formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is 09/05/05;
StaffNumber = 100 and the value that is within the AbsenceDetail cell for
the 09/05/05 for # 100 is Holiay, except my formula returns 0 (I have it
formatted as General)

Any ideas appreciated


Thanks


  #4   Report Post  
John
 
Posts: n/a
Default

Aladin / Don

Getting #values returned, I expect the word 'Holidays'


"Aladin Akyurek" wrote in message
...
In case AbsenceDetail houses text-formatted numbers instead of true
numbers:

=SUMPRODUCT(--(DailyDate=F67),--(StaffNumber=$C$11),--AbsenceDetail)

John wrote:
I am trying to re-jig a formula that shows hours worked for a particular
day, to showing any absence detail shown for a particular employee. I
have the fllowing formula which doesn't work and I'm not sure why. A
similiar formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is
09/05/05; StaffNumber = 100 and the value that is within the
AbsenceDetail cell for the 09/05/05 for # 100 is Holiay, except my
formula returns 0 (I have it formatted as General)

Any ideas appreciated


Thanks


  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Can you post a few rows from AbsenceDetail?

John wrote:
Aladin / Don

Getting #values returned, I expect the word 'Holidays'


"Aladin Akyurek" wrote in message
...

In case AbsenceDetail houses text-formatted numbers instead of true
numbers:

=SUMPRODUCT(--(DailyDate=F67),--(StaffNumber=$C$11),--AbsenceDetail)

John wrote:

I am trying to re-jig a formula that shows hours worked for a particular
day, to showing any absence detail shown for a particular employee. I
have the fllowing formula which doesn't work and I'm not sure why. A
similiar formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is
09/05/05; StaffNumber = 100 and the value that is within the
AbsenceDetail cell for the 09/05/05 for # 100 is Holiay, except my
formula returns 0 (I have it formatted as General)

Any ideas appreciated


Thanks




--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.


  #6   Report Post  
John
 
Posts: n/a
Default

Aladin, not sure how this will come out, but see below is the Row I am
looking at for the 09/05/05. First value 100 is in Column A, and the
AbsenceDetail is 'Holidays' in Column Q

100 09/05/05 0 0 0 0 0 0 0 0 0 0 0 FHOP Mgr HO Holidays







"Aladin Akyurek" wrote in message
...
Can you post a few rows from AbsenceDetail?

John wrote:
Aladin / Don

Getting #values returned, I expect the word 'Holidays'


"Aladin Akyurek" wrote in message
...

In case AbsenceDetail houses text-formatted numbers instead of true
numbers:

=SUMPRODUCT(--(DailyDate=F67),--(StaffNumber=$C$11),--AbsenceDetail)

John wrote:

I am trying to re-jig a formula that shows hours worked for a particular
day, to showing any absence detail shown for a particular employee. I
have the fllowing formula which doesn't work and I'm not sure why. A
similiar formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is
09/05/05; StaffNumber = 100 and the value that is within the
AbsenceDetail cell for the 09/05/05 for # 100 is Holiay, except my
formula returns 0 (I have it formatted as General)

Any ideas appreciated


Thanks




--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.



  #7   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

It seems you have a lookup question...

Assuming that DailyDate, StaffNumber, and AbsenceDetail are names of the
relevant ranges in different columns:

=INDEX(AbsenceDetail,MATCH(1,(DailyDate=F67)*(Staf fNumber=$C$11),0))

which must be confirmed with control+shift+enter, not just with enter.

John wrote:
Aladin, not sure how this will come out, but see below is the Row I am
looking at for the 09/05/05. First value 100 is in Column A, and the
AbsenceDetail is 'Holidays' in Column Q

100 09/05/05 0 0 0 0 0 0 0 0 0 0 0 FHOP Mgr HO Holidays

[...]
  #8   Report Post  
Bob Phillips
 
Posts: n/a
Default

Are you saying that the AbsenceDetail cell contains the text Holiday? If so,
that will sum as 0.

--
HTH

Bob Phillips

"John" wrote in message
...
I am trying to re-jig a formula that shows hours worked for a particular
day, to showing any absence detail shown for a particular employee. I have
the fllowing formula which doesn't work and I'm not sure why. A similiar
formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is

09/05/05;
StaffNumber = 100 and the value that is within the AbsenceDetail cell for
the 09/05/05 for # 100 is Holiay, except my formula returns 0 (I have it
formatted as General)

Any ideas appreciated


Thanks




  #9   Report Post  
John
 
Posts: n/a
Default

Thats correct Bob, it contains Holiday and returns 0, but I want it to
return 'Holiday'


"Bob Phillips" wrote in message
...
Are you saying that the AbsenceDetail cell contains the text Holiday? If
so,
that will sum as 0.

--
HTH

Bob Phillips

"John" wrote in message
...
I am trying to re-jig a formula that shows hours worked for a particular
day, to showing any absence detail shown for a particular employee. I
have
the fllowing formula which doesn't work and I'm not sure why. A similiar
formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is

09/05/05;
StaffNumber = 100 and the value that is within the AbsenceDetail cell for
the 09/05/05 for # 100 is Holiay, except my formula returns 0 (I have it
formatted as General)

Any ideas appreciated


Thanks






  #10   Report Post  
Bob Phillips
 
Posts: n/a
Default

You cannot sum text. And what if many cells c ontain Holiday, what do you
want then? Or some don't.

Maybe you want

=SUMPRODUCT(--(DailyDate=F67),--(StaffNumber=$C$11),--(AbsenceDetail="Holida
y"))


--
HTH

Bob Phillips

"John" wrote in message
...
Thats correct Bob, it contains Holiday and returns 0, but I want it to
return 'Holiday'


"Bob Phillips" wrote in message
...
Are you saying that the AbsenceDetail cell contains the text Holiday? If
so,
that will sum as 0.

--
HTH

Bob Phillips

"John" wrote in message
...
I am trying to re-jig a formula that shows hours worked for a

particular
day, to showing any absence detail shown for a particular employee. I
have
the fllowing formula which doesn't work and I'm not sure why. A

similiar
formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is

09/05/05;
StaffNumber = 100 and the value that is within the AbsenceDetail cell

for
the 09/05/05 for # 100 is Holiay, except my formula returns 0 (I have

it
formatted as General)

Any ideas appreciated


Thanks










  #11   Report Post  
John
 
Posts: n/a
Default

Thanks Bob, what I want is whatever value is within the field associated
with the Range Name AbsenceDetail that equates to the DailyDate &
StaffNumber

Can't use hardcoded value of "Holidays' becuase there are quite a number of
different values that can be returned within the AbsenceDetail field



"Bob Phillips" wrote in message
...
You cannot sum text. And what if many cells c ontain Holiday, what do you
want then? Or some don't.

Maybe you want

=SUMPRODUCT(--(DailyDate=F67),--(StaffNumber=$C$11),--(AbsenceDetail="Holida
y"))


--
HTH

Bob Phillips

"John" wrote in message
...
Thats correct Bob, it contains Holiday and returns 0, but I want it to
return 'Holiday'


"Bob Phillips" wrote in message
...
Are you saying that the AbsenceDetail cell contains the text Holiday?
If
so,
that will sum as 0.

--
HTH

Bob Phillips

"John" wrote in message
...
I am trying to re-jig a formula that shows hours worked for a

particular
day, to showing any absence detail shown for a particular employee. I
have
the fllowing formula which doesn't work and I'm not sure why. A

similiar
formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is
09/05/05;
StaffNumber = 100 and the value that is within the AbsenceDetail cell

for
the 09/05/05 for # 100 is Holiay, except my formula returns 0 (I have

it
formatted as General)

Any ideas appreciated


Thanks










  #12   Report Post  
Bob Phillips
 
Posts: n/a
Default

I think you will have to hardcode them, within an array. What are they?

--
HTH

Bob Phillips

"John" wrote in message
...
Thanks Bob, what I want is whatever value is within the field associated
with the Range Name AbsenceDetail that equates to the DailyDate &
StaffNumber

Can't use hardcoded value of "Holidays' becuase there are quite a number

of
different values that can be returned within the AbsenceDetail field



"Bob Phillips" wrote in message
...
You cannot sum text. And what if many cells c ontain Holiday, what do

you
want then? Or some don't.

Maybe you want


=SUMPRODUCT(--(DailyDate=F67),--(StaffNumber=$C$11),--(AbsenceDetail="Holida
y"))


--
HTH

Bob Phillips

"John" wrote in message
...
Thats correct Bob, it contains Holiday and returns 0, but I want it to
return 'Holiday'


"Bob Phillips" wrote in message
...
Are you saying that the AbsenceDetail cell contains the text Holiday?
If
so,
that will sum as 0.

--
HTH

Bob Phillips

"John" wrote in message
...
I am trying to re-jig a formula that shows hours worked for a

particular
day, to showing any absence detail shown for a particular employee.

I
have
the fllowing formula which doesn't work and I'm not sure why. A

similiar
formula works for me getting basic hours worked etc

=SUMPRODUCT(--(DailyDate=F67)*(StaffNumber=$C$11),(AbsenceDetail ))

My range names are correct and all have the same 'length'. F67 is
09/05/05;
StaffNumber = 100 and the value that is within the AbsenceDetail

cell
for
the 09/05/05 for # 100 is Holiay, except my formula returns 0 (I

have
it
formatted as General)

Any ideas appreciated


Thanks












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
Problem with formula in Excel Bill R Excel Worksheet Functions 3 August 15th 05 03:02 AM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Problem with formula Sundaram Iyer Excel Discussion (Misc queries) 0 June 1st 05 12:49 AM
Need a formula for this problem Trying to excel in life but need help Excel Worksheet Functions 1 January 12th 05 11:05 AM


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