#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Code Adjustment

Hi everyone, I need your help and here is my problem:
In Sheet named "Punch Clock", I have cell A1=Today() and cell E1=Time and
cell A3 = John

In Sheet1 I have from B6:B370 a range of dates and from E4:S4 a range of Names

In cells B6:B370 I have this formula
IF($B$6TODAY(),"",SUMPRODUCT(--('Punch Clock'!$A$3=$E$4)*--('Punch
Clock'!$A$1=B6),'Punch Clock'!$B$1))

and I have this code

Sub ConvertToValue1AftIn()
Dim cell As Range
For Each cell In Range("E6:E370")
If cell < Sheets("Punch Clock").Range("E1") Then
cell.Value = cell
End If
Next cell
End Sub

This code works only on the range of dates, is it possible to extend it to
concider also the range of names?.

Thank you in advance for your kind help


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Code Adjustment

Hi Don,
Thank you for your reply, but from what I could understand the OFFSET does
not solve my problem. The SUMPRODUCT formula works ok for me the actual
problem I have is in the code. the code changes the formula result into
value ommitting the formula, but it is based on the date alone, I would like
to be based on the date and the name. What I failed to specify is that from
cells E6:L370 I have the same SUMPRODUCT formula corresponding to the names
in cells E4:S4 So I get the result in the corresponding cell refering to the
name and date.

Thank you once again
Albert

"Don Guillett" wrote:

Look in the help index for OFFSET

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"albertmb" wrote in message
...
Hi everyone, I need your help and here is my problem:
In Sheet named "Punch Clock", I have cell A1=Today() and cell E1=Time and
cell A3 = John

In Sheet1 I have from B6:B370 a range of dates and from E4:S4 a range of
Names

In cells B6:B370 I have this formula
IF($B$6TODAY(),"",SUMPRODUCT(--('Punch Clock'!$A$3=$E$4)*--('Punch
Clock'!$A$1=B6),'Punch Clock'!$B$1))

and I have this code

Sub ConvertToValue1AftIn()
Dim cell As Range
For Each cell In Range("E6:E370")
If cell < Sheets("Punch Clock").Range("E1") Then
cell.Value = cell
End If
Next cell
End Sub

This code works only on the range of dates, is it possible to extend it to
concider also the range of names?.

Thank you in advance for your kind help




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Code Adjustment


If desired, send your wb to my address below along with this msg and
before/after examples.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"albertmb" wrote in message
...
Hi Don,
Thank you for your reply, but from what I could understand the OFFSET does
not solve my problem. The SUMPRODUCT formula works ok for me the actual
problem I have is in the code. the code changes the formula result into
value ommitting the formula, but it is based on the date alone, I would
like
to be based on the date and the name. What I failed to specify is that
from
cells E6:L370 I have the same SUMPRODUCT formula corresponding to the
names
in cells E4:S4 So I get the result in the corresponding cell refering to
the
name and date.

Thank you once again
Albert

"Don Guillett" wrote:

Look in the help index for OFFSET

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"albertmb" wrote in message
...
Hi everyone, I need your help and here is my problem:
In Sheet named "Punch Clock", I have cell A1=Today() and cell E1=Time
and
cell A3 = John

In Sheet1 I have from B6:B370 a range of dates and from E4:S4 a range
of
Names

In cells B6:B370 I have this formula
IF($B$6TODAY(),"",SUMPRODUCT(--('Punch Clock'!$A$3=$E$4)*--('Punch
Clock'!$A$1=B6),'Punch Clock'!$B$1))

and I have this code

Sub ConvertToValue1AftIn()
Dim cell As Range
For Each cell In Range("E6:E370")
If cell < Sheets("Punch Clock").Range("E1") Then
cell.Value = cell
End If
Next cell
End Sub

This code works only on the range of dates, is it possible to extend it
to
concider also the range of names?.

Thank you in advance for your kind help





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
Value Axis Adjustment Workbook Charts and Charting in Excel 5 December 15th 08 03:22 AM
Value Axis Adjustment Workbook Excel Worksheet Functions 1 December 13th 08 11:32 AM
formula adjustment Candace Excel Worksheet Functions 2 November 3rd 07 10:02 PM
Formula Adjustment - Help Josh O. Excel Worksheet Functions 1 January 24th 07 02:58 PM
Inflation Adjustment dimitmant Excel Discussion (Misc queries) 1 November 17th 05 09:06 AM


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