+ Reply to Thread
Results 1 to 14 of 14

help with date refrence

  1. #1
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Question help with date refrence

    failure record.xlsx
    i need help if any can help me.
    i have worksheet for recording the failures o computers, if there is a failure in a specific it is indicated by "OFF" in the sheet. how can i have the dates of failure to be inserted in another sheet depending n the status of the PC. attached sample of required data. (if PC 1 is OFF in 2-May-2104 the date should be inserted in second sheet named PC1 and so on)
    Last edited by nartnart; 10-18-2014 at 11:15 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: help with date refrence

    Hi,

    See the file. I had illustrated the formula on PC1 sheet, same can be repeated for all computers.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Re: help with date refrence

    thanks a lot. it works well. i tried to add more dates and changed the function with the new area but it only show the date with old results, what i have to change also.
    =IFERROR(INDEX(Sheet1!$B$1:$AE$1;;SMALL(IF(INDEX(Sheet1!$B$2:$AE$3;MATCH('PC 2'!$B$1;Sheet1!$A$2:$A$3;0)="OFF";COLUMN(Sheet1!$B$1:$AE$1)-COLUMN(Sheet1!$B$1)+1);ROWS($A$2:A2)));"")

  4. #4
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: help with date refrence

    =IFERROR(INDEX(Sheet1!$B$1:$AE$1;;SMALL(IF(INDEX(Sheet1!$B$2:$AE$3;MATCH('PC 2'!$B$1;Sheet1!$A$2:$A$3;0)="OFF";COLUMN(Sheet1!$B$1:$AE$1)-COLUMN(Sheet1!$B$1)+1);ROWS($A$2:A2)));"")

    Change the red part also as per your range if you are including more rows.

  5. #5
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Re: help with date refrence

    i did not include any new rows. only columns. attached my sheet. still not working

    failure record.xlsx
    Last edited by nartnart; 10-18-2014 at 03:40 AM.

  6. #6
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: help with date refrence

    Unable to download file, kindly re-upload it.

  7. #7
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Re: help with date refrence

    Quote Originally Posted by misrasomendra View Post
    Unable to download file, kindly re-upload it.
    thanks for response. uploaded

  8. #8
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: help with date refrence

    See the file, You missed a comma highlighted in RED.

    =IFERROR(INDEX(Sheet1!$B$1:$AE$1,,SMALL(IF(INDEX(Sheet1!$B$2:$AE$3,MATCH('PC 1'!$B$1,Sheet1!$A$2:$A$3,0),)="OFF",COLUMN(Sheet1!$B$1:$AE$1)-COLUMN(Sheet1!$B$1)+1),ROWS($A$2:A9))),"")
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Thumbs up Re: help with date refrence


    thanks a lot. working perfect

  10. #10
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: help with date refrence

    Thanks for the feedback. If you think my feedback had helped you you can give me some reps point by clicking the star of Add reputation below my comments.

  11. #11
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Re: help with date refrence

    help if you can.
    i did it for 25 PC manually. and i have another 20 PC. is there away to do it automatically ( to create a sheet for every PC that listed in sheet 1)

  12. #12
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Re: help with date refrence

    i found this macro that will create new sheets but how to include the formula (the one that copy dates to the PC sheet) in the macro.

    Sub CreateSheetsFromAList()
    Dim MyCell As Range, MyRange As Range

    Set MyRange = Sheets("Summary").Range("A10")
    Set MyRange = Range(MyRange, MyRange.End(xlDown))

    For Each MyCell In MyRange
    Sheets.Add After:=Sheets(Sheets.Count) 'creates a new worksheet
    Sheets(Sheets.Count).Name = MyCell.Value ' renames the new worksheet
    Sheets(Sheets.Count).Cells(1, 1).Value = "Failure Dates"
    Sheets(Sheets.Count).Cells(1, 2).Value = MyCell.Value
    Next MyCell
    End Sub

  13. #13
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Re: help with date refrence


  14. #14
    Registered User
    Join Date
    10-17-2014
    Location
    jordan
    MS-Off Ver
    2007
    Posts
    9

    Re: help with date refrence

    i need help if any can

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Refrence error
    By a.janmohammadi in forum Excel General
    Replies: 3
    Last Post: 03-10-2014, 02:50 PM
  2. refrence value
    By mak_pj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2013, 04:22 PM
  3. [SOLVED] cell refrence
    By jeeper74 in forum Excel General
    Replies: 4
    Last Post: 02-16-2013, 11:55 AM
  4. [SOLVED] Circular refrence necessary or is there a better way help
    By sakecat in forum Excel General
    Replies: 2
    Last Post: 05-02-2012, 03:27 PM
  5. Using one number to refrence another
    By pugsly8422 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1