+ Reply to Thread
Results 1 to 18 of 18

Looking for a dynamic formula to copy down

  1. #1
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Looking for a dynamic formula to copy down

    I am looking for a formula that will allow me to sort this data by location and workgroup. It is easier for me to attach and example. I have highlighted in yellow what I need the formula result to be. The issue is this data is dynamic and has a different amount of rows each time. What is consistent is the locations (highlighted in black) are always above the workgroups.

    You can see where I started it (below the yellow), but was easier to illustrate what I am looking for like this. In other words, everything in yellow I need a formula to get that data

    Any help is appreciated!
    Attached Files Attached Files
    Last edited by g1terra; 01-15-2023 at 02:14 PM.

  2. #2
    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: Looking for a dynamic formula to copy down

    Change D2 to:

    =IFERROR(MID(LEFT(F3,FIND("(",F3)-1),FIND("-",F3)+2,LEN(F3)),"")

    copied down. Then delete all expected results and use:

    =C2&" "&SCAN("",D3:D38,LAMBDA(x,y,IF(y="",x,y)))
    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

  3. #3
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Looking for a dynamic formula to copy down

    I need it to go all the way down to row 442. I get NAME error on this one following these instructions?
    Attached Files Attached Files

  4. #4
    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: Looking for a dynamic formula to copy down

    1. The formula should be entered ONLY in the first row. No copying down.

    2. Delete and try again.

    3. If you STILL get #NAME, your version of O365 may not support SCAN.

    4. Check the versuin by looking at the account page.

    5. Alternatively, use:
    =C2&LET(a,D3:D500,B,FILTER(a,F3:F500>0),c,SEQUENCE(ROWS(B)),LOOKUP(c,c/(B>""),B))

    ONLY in c3.
    Attached Images Attached Images
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Looking for a dynamic formula to copy down

    I am on ver. 2008. When I open the original file you send me it does work but I need it to work to row 400 or so. When I changed what you sent me to from row 38 to 400 then I get the Name error. So maybe that is the issue w scan?

    When I try the alternative you just sent I get this error

    Attachment 813699

  6. #6
    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: Looking for a dynamic formula to copy down

    Does it work in the sample file I posted at post 4?


    Is there a version 2008?

    Post a screenshot of yourproduct andversion,like minein Post 4.

  7. #7
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Looking for a dynamic formula to copy down


  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: Looking for a dynamic formula to copy down

    1. You did not answer my question.

    2. Your attachment is invalid/corrupt.

    3. I will try again.

    4. When I open the file attached HERE, I see this.
    WHAT DO YOU SEE?

    5. Was it working in MY file?

    6. Did it fail ONLY in your file?

    7. There is NOTHING in my formula that should be incompatable with any version of O365... which is what you say you are using.

    8. Please retake a screenshot of your account page and post it.
    Attached Images Attached Images
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Looking for a dynamic formula to copy down

    Sorry I will try and be more clear. When I first open the file yes I see exactly that. When I add data in F285 the formula goes away and I see only this. The data in column F will not always be the same

    Does that make more sense? Having issue attaching a long pic, hang on

    2023-01-17_21-40-38.jpg
    Last edited by g1terra; 01-17-2023 at 10:48 PM.

  10. #10
    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: Looking for a dynamic formula to copy down

    I copy/pasted some data from further up the column into F285 and it worked perfectly
    Attached Files Attached Files

  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: Looking for a dynamic formula to copy down

    Post the file which has the #Name error.

  12. #12
    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: Looking for a dynamic formula to copy down

    You STILL have not posted a picture with your Product/version. Please do so now.

  13. #13
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Looking for a dynamic formula to copy down

    OK, I did post the version at 3:07PM. It says attachment 813788 above. After I posted I clicked on it to see if it worked and it opened a new window and worked. Now when I click it does not for some reason.

    See screenshot and attached file

    Attachment 813833

  14. #14
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Looking for a dynamic formula to copy down

    Sorry I don't know why sometimes I post a pic and it shows and sometimes you need to click on the link. The link to the photo is above.

    BookA (1).xlsx

  15. #15
    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: Looking for a dynamic formula to copy down

    Thanks. I see the image. Your product is bit old... and does not receive updates. O365 and what it does/does not support is massively confusing.

    The file I attached at Post 8 SHOULD have worked OK. I'm on my phone right now (no Excel on it) but will check on lsptop in about 45 mins.

    In the meantime... please check to see if all 3 of these are available on your Excel version:

    LET
    FILTER
    SEQUENCE

  16. #16
    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: Looking for a dynamic formula to copy down

    OK. Let's pretend you DON'T have O365...

    Try this:

    I set up a Named Range (called Rng.... CTRl-F3 to view/edit)

    ='(Current) Bin Summary - 3 level'!$D$3:INDEX('(Current) Bin Summary - 3 level'!$D:$D,MATCH("ZZzzz",'(Current) Bin Summary - 3 level'!$F:$F))

    I then used this:

    =C2&LOOKUP(ROW(Rng),ROW(Rng)/(Rng<>""),Rng)
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    06-02-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    235

    Re: Looking for a dynamic formula to copy down

    That worked magically!! Perfect, that you so much!!

  18. #18
    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: Looking for a dynamic formula to copy down

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    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. [SOLVED] Dynamic formula, (copy from dynamic formula and ignore 0)
    By Kartoffelmos in forum Excel Formulas & Functions
    Replies: 42
    Last Post: 10-20-2014, 09:14 AM
  2. [SOLVED] Macro to copy formula to blank cells in a dynamic range
    By masben in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-25-2013, 07:07 AM
  3. [SOLVED] dynamic column reference, copy formula down
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2012, 06:19 PM
  4. Copying and Copy and Pasting Formula with Dynamic number of rows
    By patelh9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2010, 11:33 PM
  5. VBA to copy a formula down a dynamic range
    By jackb1117 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2009, 12:37 PM
  6. copy formula and paste it to dynamic table
    By Sharky Amit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2009, 02:05 AM
  7. [SOLVED] Easy copy of an Array Formula with Dynamic Value...
    By Dennis G. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2005, 08: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