+ Reply to Thread
Results 1 to 6 of 6

formula or macro help to show data based on name/days to service

Hybrid View

jw01 formula or macro help to show... 01-07-2012, 03:58 PM
canapone Re: formula or macro help to... 01-08-2012, 01:35 AM
jw01 Re: formula or macro help to... 01-08-2012, 03:03 AM
pike Re: formula or macro help to... 01-08-2012, 03:53 AM
jw01 Re: formula or macro help to... 01-08-2012, 01:44 PM
Haseeb Avarakkan Re: formula or macro help to... 01-08-2012, 08:34 PM
  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,237

    formula or macro help to show data based on name/days to service

    hello all

    ive been struggling to create a macro or a formula that will only show me the relating data based on two conditions i.e. company name and # of days > 6

    i have attached a sample,

    basically, in the worksheet "6+SLA" i want to show all hsbc and hbio account details (row 6 on SLA sheet matches, data sheet row 1 headers) whose days to complete is greater than 6 days (from the "data" worksheet)
    -company name is in column AH on "data worksheet"
    -# of days is in column AG on "data worksheet"

    i would be very grateful.
    Attached Files Attached Files
    Last edited by jw01; 01-08-2012 at 12:58 PM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: formula or macro help to show data based on name/days to service

    Hi, i've added an extra helper column (AI) in order to filter >6 and <>"No". You could also modify AH.

    All the formulas are array formulas (to be confirmed with control+shift+enter): please double-check if {} embrace all the formula.

    =IF(ISERROR(INDEX(Data!$A$1:$A$1000,SMALL(IF(Data!$AI$1:$AI$1000=TRUE,ROW($A$1:$A$1000)),ROWS($A$1:$A1)))),"",INDEX(Data!A$1:A$1000,SMALL(IF(Data!$AI$1:$AI$1000=TRUE,ROW($A$1:$A$1000)),ROWS($A$1:$A1))))
    Hope it helps

    Regards
    Attached Files Attached Files
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,237

    Re: formula or macro help to show data based on name/days to service

    hello

    thx u so much for your great help!!!

    i really really appreciate it....i like the use of column AI which uses "no" and >6 which will then show the list.....awesome!

    have a wonderful day
    cheers

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: formula or macro help to show data based on name/days to service

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,237

    Re: formula or macro help to show data based on name/days to service

    hey pike

    i was wondering if u can help me one last time

    i tried to modify the formula you provided into this:

    {=IF(ISERROR(INDEX((INDEX(_Data,0,1)),SMALL(IF((INDEX(_Data,0,35))=TRUE,ROW($A$1:$A$1000)),ROWS($A$1:$A1)))),"",INDEX((INDEX(_Data,0,1)),SMALL(IF((INDEX(_Data,0,35))=TRUE,ROW($A$1:$A$1000)),ROWS($A$1:$A1))))}

    however its giving me blanks *see attached*

    the reason being...i uno how to adjust the range $A$1:$A$1000 to that of (INDEX(_Data,0,1)...

    any suggestions?....the defined name "_Data" is entire table in worksheet "data"

    ur thoughts? thx u so much!
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: formula or macro help to show data based on name/days to service

    See the attached. Hide Col_A & Row #5, if you want.
    Attached Files Attached Files
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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