+ Reply to Thread
Results 1 to 13 of 13

How to expand formula to other cells.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-06-2023
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    133

    How to expand formula to other cells.

    Hello,

    I am trying to create a sheet that tracks when we hit our targets and when we miss them. So far I have been able to get the sheet to work for the first name on the list "Black Jelly". This is how it works:

    1) I select from the drop down list in column A.
    2) When I do, "1st Touch Target", "2nd Touch Target", "3rd Touch Target", "4th Touch Target", "5th Touch Target", and "Final Defol Target". are populated automatically with the numbers from the Data tab.
    3) When "Black Jelly" is selected, it looks at all the "1st touch" numbers from the Data tab in cells D2-G2.
    4) It then populates the numbers in cell H3 as a range using the highest and lowest numbers "5-7".
    5) It does the same for 2nd, 3rd, 4th, 5th, and Final touches.
    6) If there is no number populated in the cells on the Data tab, it populates "Optional" instead.


    I need help with:

    1) I would like to continue these formulas through all the cells in their appropriate columns.
    2) I would like the info to change depending on the Cultivar picked in column A.

    Here is my file: WIP - Crop Work Targets & Misses.xlsx

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,934

    Re: How to expand formula to other cells.

    in H3

    Formula: copy to clipboard
    =SUBSTITUTE(MIN(CHOOSECOLS(FILTER(Data!$D$2:$AB$18,(Data!$A$2:$A$18=$A3)),SEQUENCE(,COUNTIFS(Data!$D$1:$AB$1,H$1),MATCH(H$1,Data!$D$1:$AB$1,0))))&"-"&MAX(CHOOSECOLS(FILTER(Data!$D$2:$AB$18,(Data!$A$2:$A$18=$A3)),SEQUENCE(,COUNTIFS(Data!$D$1:$AB$1,H$1),MATCH(H$1,Data!$D$1:$AB$1,0)))),"0-0","Optional")


    or

    Formula: copy to clipboard
    =LET(a,Data!$D$2:$AB$18,b,Data!$A$2:$A$18,c,Data!$D$1:$AB$1,SUBSTITUTE(MIN(CHOOSECOLS(FILTER(a,(b=$A3)),SEQUENCE(,COUNTIFS(c,R$1),MATCH(R$1,c,0))))&"-"&MAX(CHOOSECOLS(FILTER(a,(b=$A3)),SEQUENCE(,COUNTIFS(c,R$1),MATCH(R$1,c,0)))),"0-0","Optional"))


    Copy to J, l etc

    See attached
    Attached Files Attached Files
    Last edited by JohnTopley; 10-12-2024 at 04:57 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    12-06-2023
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    133

    Re: How to expand formula to other cells.

    Hi John,

    Thank you, your file seems to work well. I added an IFERROR function to the formulas to remove the errors when cells are empty.

    However I am getting another error, when I make all the names the same. Under "Pinch Target" some of them say "No pinch" while others sale "0-4". I can't seem to figure out why.

    Attachment 881091

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,934

    Re: How to expand formula to other cells.

    Please attach your w/book showing the problems: cannot read the attachment.

  5. #5
    Forum Contributor
    Join Date
    12-06-2023
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    133

    Re: How to expand formula to other cells.


  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,934

    Re: How to expand formula to other cells.

    I think formula should be

    Formula: copy to clipboard
    =IFERROR(IF(VLOOKUP($A3,Data!$A:$K,3,FALSE)=0,"No Pinch",VLOOKUP($A3,Data!$A:$K,3,FALSE)),"")

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: How to expand formula to other cells.

    Try, in F3, copy down and across:
    =IFERROR(AGGREGATE(15,6,Data!$A$1:$AB$18/((Data!$A$1:$AB$18<>"")*(Data!$A$1:$A$18=$A3)*(Data!$A$1:$AB$1=F$1)),1)&" - "&AGGREGATE(14,6,Data!$A$1:$AB$18/((Data!$A$1:$AB$18<>"")*(Data!$A$1:$A$18=$A3)*(Data!$A$1:$AB$1=F$1)),1),IF(F$1="Pinch","No Pinch","Optional"))
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-06-2023
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    133

    Re: How to expand formula to other cells.

    Hi Joseph,

    It appears to work, however all the empty cells have "No Pinch" auto-populated into them. Is there anyway to remove that so they are only displayed when data is entered?

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: How to expand formula to other cells.

    Quote Originally Posted by Tricks420 View Post
    Hi Joseph,

    It appears to work, however all the empty cells have "No Pinch" auto-populated into them. Is there anyway to remove that so they are only displayed when data is entered?
    Just add in front, IF(A3="","",formula)

  10. #10
    Forum Contributor
    Join Date
    12-06-2023
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    133

    Re: How to expand formula to other cells.

    It works, thank you @JohnTopley!

+ 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] Power Query- Expand without naming columns (just expand all?)
    By Anita Knapp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-04-2024, 03:32 PM
  2. [SOLVED] Expand Formula Across Multiple Cells
    By Taylah in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-17-2021, 05:17 AM
  3. [SOLVED] Expand a formula to other cells - given the complexity of the formula, a bit tricky
    By Schroeder70 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-03-2021, 04:32 AM
  4. [SOLVED] Expand the current formula to include additional cells
    By Demogorgan in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 02-14-2021, 04:04 PM
  5. Replies: 3
    Last Post: 04-25-2020, 09:46 AM
  6. Replies: 6
    Last Post: 11-13-2018, 04:54 AM
  7. [SOLVED] Using the balance sheet template, any way to expand?-way to expand
    By RABBITS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-27-2005, 02:05 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