Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Best way to solve my issue

I am trying to solve a speadsheet issue with formula's but i think it may be
too difficult, and i may have to do it in vba.

Not sure how to go about this though:

This is HOW my data is stored:

Sheet 1
Stores data of training modules setup for use, including the Module Title in
Column A and other data across each row for each separate Module.

Sheet 2
Stores data of training that has been carried out.
Each training completed is stored in a new row.
Starting with the Module Title in Column A,
The employee name in Column D, and
The Date Completed in Column AD.

Sheet 3
This is a spreadsheet i want to setup for a visual guide to who has/has not
been trained.

I have the Module Titles that have been entered into the Sheet1 Column A
Displayed in Column A in Sheet 3.

I have then listed ALL employees in Row 1 Starting from Column B across to
S.

So i now have a List of Module Titles down the Column A Left Hand side of
the Page and Employee Names Acrooss the Top of the Page.
I Now want to LOOKUP the data that exists in Sheet 2 and Display the Date(IF
Carried Out) in the Corresponding Cell for the Module Name and Employee's
Name in the SpreadSheet.

This is the part i am having difficulty in doing.

Basically the principal is as follows:

IF(SHEET3 MODULE TITLE = SHEET2 COLUMN A MODULE TITLE, and SHEET2 EMPLOYEE
NAME=SHEET3 EMPLOYEE NAME, and SHEET2 COMPLETED DATE <""),SHEET3 CELL =
COMPLETED DATE,"")

So i want the DATE the training was done(Sheet2 Column AD Value) to be
displayed in Sheet3, otherwise leave the cell empty.

There are times when there WILL be a Module Title AND Employee Name in
Sheet2, but NO DATE, as this would indicate Training has ocured, but not
Completed with a Date added YET.
So in this case the Date would ONLY be displayed in Sheet3 WHEN there exists
a Date in the Sheet2.

Any pointers to carry this out the best way?

Corey


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Best way to solve my issue

Solved:

Made uip 18 in total of below::

Sub Employee1()
Application.ScreenUpdating = False
Dim rngFound As Range
Dim rng2Found As Range
Dim rng3Found As Range
Dim res As Variant
On Error Resume Next
With Worksheets("SavedData").Range("D:D")
Set rngFound = .Find(What:=Sheet4.Range("B1").Value, After:=.Cells(1),
LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows,
SearchDirection:=xlNext, MatchCase:=False, Matchbyte:=False)
If rngFound.Value < "" Then
With Worksheets("COMPLETED_MODULES").Range("A2:A43")
Set rng2Found = .Find(What:=rngFound.Offset(0, -3).Value,
After:=.Cells(1), LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows,
SearchDirection:=xlNext, MatchCase:=False, Matchbyte:=False)
If rng2Found.Value < "" And rngFound.Offset(0, 26).Text < "" Then

With Worksheets("COMPLETED_MODULES").Range("B1:S1")
Set rng3Found = .Find(What:=rngFound.Value,
After:=.Cells(1), LookIn:=xlValues, LookAt:=xlWhole,
SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False,
Matchbyte:=False)
If rng3Found < "" Then

rng2Found.Offset(0, (rng3Found.Column -
1)).Value = rngFound.Offset(0, 26).Text
Else
rng2Found.Offset(0, (rng3Found.Column -
1)).Value = ""
End If
End With
End If
End With
End If
End With
Application.ScreenUpdating = True
End Sub


Then called them together with:
Sub CompletedModules()
Application.ScreenUpdating = False
Call Employee1
Call Employee2
Call Employee3
Call Employee4
Call Employee5
Call Employee6
Call Employee7
Call Employee8
Call Employee9
Call Employee10
Call Employee11
Call Employee12
Call Employee13
Call Employee14
Call Employee15
Call Employee16
Call Employee17
Call Employee18
Sheets("COMPLETED_MODULES").Activate
Application.ScreenUpdating = True
End Sub

Possible a more efficient way to have 1 code isstead of having 18, but it
DOES work as required, and am now happy with the out come.

Corey....
"Corey ...." wrote in message
.. .
I am trying to solve a speadsheet issue with formula's but i think it may
be too difficult, and i may have to do it in vba.

Not sure how to go about this though:

This is HOW my data is stored:

Sheet 1
Stores data of training modules setup for use, including the Module Title
in Column A and other data across each row for each separate Module.

Sheet 2
Stores data of training that has been carried out.
Each training completed is stored in a new row.
Starting with the Module Title in Column A,
The employee name in Column D, and
The Date Completed in Column AD.

Sheet 3
This is a spreadsheet i want to setup for a visual guide to who has/has
not been trained.

I have the Module Titles that have been entered into the Sheet1 Column A
Displayed in Column A in Sheet 3.

I have then listed ALL employees in Row 1 Starting from Column B across
to S.

So i now have a List of Module Titles down the Column A Left Hand side of
the Page and Employee Names Acrooss the Top of the Page.
I Now want to LOOKUP the data that exists in Sheet 2 and Display the
Date(IF Carried Out) in the Corresponding Cell for the Module Name and
Employee's Name in the SpreadSheet.

This is the part i am having difficulty in doing.

Basically the principal is as follows:

IF(SHEET3 MODULE TITLE = SHEET2 COLUMN A MODULE TITLE, and SHEET2 EMPLOYEE
NAME=SHEET3 EMPLOYEE NAME, and SHEET2 COMPLETED DATE <""),SHEET3 CELL =
COMPLETED DATE,"")

So i want the DATE the training was done(Sheet2 Column AD Value) to be
displayed in Sheet3, otherwise leave the cell empty.

There are times when there WILL be a Module Title AND Employee Name in
Sheet2, but NO DATE, as this would indicate Training has ocured, but not
Completed with a Date added YET.
So in this case the Date would ONLY be displayed in Sheet3 WHEN there
exists a Date in the Sheet2.

Any pointers to carry this out the best way?

Corey



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
plz can u solve this shailen6882 Excel Discussion (Misc queries) 9 March 26th 10 03:11 PM
How can I solve the issue of forgotten password in "sheet"? Marzi Excel Discussion (Misc queries) 1 August 6th 08 12:49 PM
if A1<0 let B2 =A1 and if A1=0 let B3=A1 solve PLEASE!!!!!!!!!! techwiz101 Excel Worksheet Functions 2 December 7th 07 02:26 AM
How do I solve for x? Joanna Excel Worksheet Functions 4 January 22nd 07 03:01 PM
Permissions issue that I cannot solve jclark419[_8_] Excel Programming 0 July 14th 06 02:40 PM


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