+ Reply to Thread
Results 1 to 12 of 12

Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Yes"

  1. #1
    Registered User
    Join Date
    12-19-2016
    Location
    Peterborough, England
    MS-Off Ver
    Office 2013
    Posts
    6

    Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Yes"

    Hi All,

    Firstly thanks for any help on this query, its much appreciated.

    I am trying to create a "Shopping List".

    Basically I have Worksheet1 Named "All Items" within the worksheet I have the following Columns:

    A1 = Catergory
    B1 = Item
    C1 = Needed
    D1 = Quantity

    The rows are populated with the information accordingly.

    What I would like to do is create a worksheet with anything I put a "Yes" to in the C1 "Needed" column and also include "D1 Quanitity"

    Thanks again,

    Gurnaam Singh
    Attached Files Attached Files

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    Hi
    Try to use a pivot table
    see the file
    Attached Files Attached Files

  3. #3
    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
    28,209

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    You could just Filter on "Yes" in column C and copy/paste to "Shopping List".

  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
    28,209

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    Or

    in A2 of "Shopping List"

    =IFERROR(INDEX('All Items'!A$2:A$1000,SMALL(IF('All Items'!$C$2:$C$1000="Yes",ROW('All Items'!$A$2:$A$1000)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")


    copy across and down

  5. #5
    Registered User
    Join Date
    12-19-2016
    Location
    Peterborough, England
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    Hi,

    Many thanks for your prompt replies.

    I have tried the following in Shopping List however nothing appears.

    =IFERROR(INDEX('All Items'!A$2:A$1000,SMALL(IF('All Items'!$C$2:$C$1000="Yes",ROW('All Items'!$A$2:$A$1000)-ROW($A$2)+1,""),ROWS($A$2:A2))),"")

    Would you mind uploading the sheet?

    Thanks.

  6. #6
    Registered User
    Join Date
    12-19-2016
    Location
    Peterborough, England
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    Or, instead of having the "Needed" column, could it create a list from the Quantity and use row information Item and Quantity

  7. #7
    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
    28,209

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    Sorry .. you need to enter the formula with Ctrl+Shift+Enter. You will see curly brackets { ...} appear round the formula if this is done correctly.

  8. #8
    Registered User
    Join Date
    12-19-2016
    Location
    Peterborough, England
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    Hi,

    It doesnt seem to be working. Sorry im not great on excel.

    I have re-uploaded the file, I have removed the column for "needed" I guess now what I am trying to achieve is if there is a value in the column Quantity then for that row to be copied/mirror over to the new sheet.

    If this is possible to be populated as I enter the quantities if that makes sense.

    Regards,

    Gurnaam Singh
    Attached Files Attached Files

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

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    Copy this into A2 on the shopping list sheet:

    =IFERROR(INDEX('All Items'!A$2:A$1000,SMALL(IF('All Items'!$C$2:$C$1000>0,ROW('All Items'!$A$2:$A$1000)-ROW($A$2)+1,""),ROWS(A$2:A2))),"")

    confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Now drag copy across to B2 and C2, then down.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Registered User
    Join Date
    12-19-2016
    Location
    Peterborough, England
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    It worked! you are an absolute legend!... thank you so much.

    I am in the process of trying to create an app and I would be happy to share a % of profit with you (if it gets going) feel free to share you email if you'd like.

    Thanks

    Gurnaam Singh

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    No need for money at all! The help offered here is free and gratis. Only the Commercial Services section involves any money. But thank you for the offer and I am glad to have helped.

  12. #12
    Registered User
    Join Date
    12-19-2016
    Location
    Peterborough, England
    MS-Off Ver
    Office 2013
    Posts
    6

    Re: Creating a New Sheet / Populating Existing Sheet from Worksheet Data with Cell Ref "Ye

    Thank you AliGW, really appreciate it. Made my day.. (sounds sad I know) but atleast it allows me to move on to the next step of my project.

    IF you wouldn't mind, could you explain the formulae so I can understand it for myself if I need to add/amend/change? I wont be offended if you dont. Thanks

+ 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] Not creating "cycle" of PDFs of named range based on cell values in second sheet
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2016, 02:12 AM
  2. Looping thru rows and copy cell values from "Inputs" sheet to "Output" sheet
    By hariexcel1987 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2015, 11:32 PM
  3. "Worksheet change" not changing cell on other sheet to match target cell "fill".
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-02-2015, 12:02 PM
  4. Replies: 3
    Last Post: 06-05-2015, 01:55 PM
  5. Script not copying data from "Emails" sheet to "New Sheet" - Run time error: Object
    By methuselah90 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2014, 03:22 PM
  6. [SOLVED] Assistance in creating a "Search" function for large data sheet
    By Ianseconds in forum Excel General
    Replies: 20
    Last Post: 10-21-2013, 10:12 AM
  7. Replies: 3
    Last Post: 05-31-2013, 05:16 AM

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