+ Reply to Thread
Results 1 to 13 of 13

Trying to copy filtered cell

  1. #1
    Registered User
    Join Date
    12-07-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Trying to copy filtered cell

    Hi all,

    New member as I can usually find my way through any issue I come up with but I'm stumped on this one.
    Im trying to create a formula where I can Match Column C to a Cell in another Sheet with a "less than & greater than" value in I & J + Matching X to add the value of Y to a selected field on the other Sheet.
    If I can achieve this I can apply it per row to finish a project I'm working on.

    Apologies if this is unclear, the goal is to have the furmula Match the data within a single rows C, I, J & X data to output the number on that rows Y value as the sheet has about 75000 rows to filter through.

    Ideally I would input matching C, a number between I & J to have this output the value of Y beside cells to match the value of X.

    Edit, I can get the sheet to indivdually highlight the calls I want to be able to copy into another Sheet. I just need to automate said process instead of filtering and manually entering said values.

    Cheers,
    Beau.
    Attached Images Attached Images
    Last edited by Xitmould; 12-07-2023 at 08:54 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2403)
    Posts
    370

    Re: Trying to copy filtered cell

    Hi Xitmould,

    Best if you can attach a small excel workbook as a sample. Just remove any sensitive data.

  3. #3
    Registered User
    Join Date
    12-07-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Re: Trying to copy filtered cell

    Hey thank you for any assistance you are able to provide, none of the data is sensitive as its all publicly available.
    I can use conditional formatting to highlight exactly what I need, I just cant figure out the output part onto sheet1.

    I have attached the file, with a lot of data deleted just so it isn't 30mb, but the fields on Sheet1 are whats required to filter the full document down to a single row.
    Any help would be amazing.

    I have the following that restores a "0" answer or false statement:

    =IF(AND(E1=AADT_2012_2022!$A1,Sheet1!E2=AADT_2012_2022!$C1,Sheet1!E3>AADT_2012_2022!$I1,Sheet1!E3<AADT_2012_2022!$J1,Sheet1!C6=AADT_2012_2022!$X1),AADT_2012_2022!$Y1,)
    Attached Files Attached Files
    Last edited by Xitmould; 12-08-2023 at 06:15 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,695

    Re: Trying to copy filtered cell

    What exactly does this mean?

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    M
    N
    3
    between I & J CH
    Sheet: Sheet1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    12-07-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Re: Trying to copy filtered cell

    The value beside the CH will fall between the values of Column I & J on the other sheet. Im just using a greater than and less than rule to find that

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,695

    Re: Trying to copy filtered cell

    OK - well, there don't appear to be any matching rows where 25 falls between the value in J and that in I, so please explain with a specific example what you mean by this.

  7. #7
    Registered User
    Join Date
    12-07-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Re: Trying to copy filtered cell

    Attachment 851902

    There is certainly values between this as I have them at the point where they are highlighted

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Trying to copy filtered cell

    One way:

    =FILTER(Table1[AADT],(Table1[TRAFFIC_YEAR]=$O$1)*(Table1[ROAD_SECTION_ID]=$O$2)*(Table1[SEG_START_THROUGH_DISTANCE]<=$O$3)*(Table1[SEG_END_THROUGH_DISTANCE]>=$O$3)*(Table1[TRAVEL_DIRECTION]=$M6))

    copied down. Or (all in one cell, no copy-paste)

    =BYROW(M6:M8,LAMBDA(z,FILTER(Table1[AADT],(Table1[TRAFFIC_YEAR]=O1)*(Table1[ROAD_SECTION_ID]=O2)*(Table1[SEG_START_THROUGH_DISTANCE]<=O3)*(Table1[SEG_END_THROUGH_DISTANCE]>=O3)*(Table1[TRAVEL_DIRECTION]=z))))

    Next time, please remember that a sample sheet is 10-20 rows, not 2000+++
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,695

    Re: Trying to copy filtered cell

    Quote Originally Posted by Xitmould View Post
    Attachment 851902

    There is certainly values between this as I have them at the point where they are highlighted
    That's column J alone, not the difference between I and J. No wonder I couldn't find anything!

  10. #10
    Registered User
    Join Date
    12-07-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Re: Trying to copy filtered cell

    Thank you Glenn,

    Which values in this string would I change if I wanted to output a different cell, Eg, ROAD_NAME ?
    Being a single output I assume I'd use the Filter option

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Trying to copy filtered cell

    This bit:

    =FILTER(Table1[AADT],(Table1[TRAFFIC_YEAR]=$O$1)*(Table1[ROAD_SECTION_ID]=$O$2)*(Table1[SEG_START_THROUGH_DISTANCE]<=$O$3)*(Table1[SEG_END_THROUGH_DISTANCE]>=$O$3)*(Table1[TRAVEL_DIRECTION]=$M6))


    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  12. #12
    Registered User
    Join Date
    12-07-2023
    Location
    Australia
    MS-Off Ver
    365
    Posts
    6

    Re: Trying to copy filtered cell

    Absolutely Perfect !!! Thank YOU !!!

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Trying to copy filtered cell

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Collect the values from different Tables and collect them into one Table
    By Romando in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2023, 01:32 AM
  2. Replies: 3
    Last Post: 09-12-2019, 10:31 PM
  3. [SOLVED] How to PDF from Filtered results
    By Cleetus09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2018, 08:00 PM
  4. Histogram on filtered table, results only on filtered rows
    By Cheesecube in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 03-25-2018, 03:54 AM
  5. Replies: 3
    Last Post: 05-07-2017, 02:53 PM
  6. Batch import and collect results in one worksheet
    By microscope in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2013, 03:16 PM
  7. SUM of filtered results?
    By Ascesis in forum Excel General
    Replies: 4
    Last Post: 07-26-2006, 01:30 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