+ Reply to Thread
Results 1 to 7 of 7

Using a drop-list to categorize and insert cells

  1. #1
    Registered User
    Join Date
    02-09-2014
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    3

    Using a drop-list to categorize and insert cells

    Please see the attached file as I feel it explains it the best.

    Essentially, I am creating a template were users can categorize items they input with a drop-list.

    STEP 1: User lists their items that need to be categorized in F4, F5, F6 ...and so on.

    STEP2: The user then uses a drop list in H4 to "categorize" the item in F4. And the drop list in H5 to categorize the item in F5, etc.

    STEP 3: Excel reads what the item in F4 has been categorized as in H4, and adds it under the appropriate cell in the template located in Column A.


    EXAMPLE

    STEP 1: The user adds "advertising", "bad debt" and "electric" to cells F4, F5 and F6, respectively.

    STEP 2: The user clicks the drop-list in H4 and selects "Selling". This effectively tags "advertising" as type "Selling". He tags bad debt in F5 as selling in H5, and electric in F6 as Special 1 in H6.

    STEP 3: Excel adds the data automatically so it looks like my attached example.


    I also posted this question at OZGrid and VBAExpress, but have not gotten any replies.
    Attached Files Attached Files
    Last edited by Daemonion; 02-09-2014 at 03:01 PM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Using a drop-list to categorize and insert cells

    Hello and welcome to the forum ! find the attached It is with slight change !
    Hope this helps
    '
    if this is helpful click "*" add reputation icon in the bottom left corner of my post!
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Using a drop-list to categorize and insert cells

    I'm not entirely sure I understand your situation. But having said that, maybe dependent combo boxes might work for you.

    See this: http://www.contextures.com/exceluser...xes.html#intro
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    02-09-2014
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using a drop-list to categorize and insert cells

    Quote Originally Posted by alansidman View Post
    I'm not entirely sure I understand your situation. But having said that, maybe dependent combo boxes might work for you.

    See this: http://www.contextures.com/exceluser...xes.html#intro
    Thank you for your reply. I've never heard of dependent combo boxes before - that looks like an extremely powerful tool and I may be able to use it. Let me try to clarify my situation a bit more.

    I am going to have lots of lists of revenue and expense line items pasted into excel like this.

    I then want to be able to categorize each of those revenue and expense line items using drop-down menus, as shown in the sheet I attached. Once an item is categorized using a drop-down list, I want it to then appear into another sheet under the correct category. It should look like this.

    Does that make sense?

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Using a drop-list to categorize and insert cells

    Hi Daemonion and welcome to the forum,

    I thought I'd give you some VERY fancy stuff to consider in answering your problem. Excel has things called Dynamic Named Ranges that can expand depending on how many rows are in the data. You can use these DNR's instead of ranges (like A2:B47) in formulas. You can even base Pivot Tables off these DNR names. To see the DNRs you need to look at the Names Manager that is in the Formulas Tab.

    I also did some fancy stuff using VBA. It is called EVENT Code that will trigger whenever stuff changes on the sheet. You need to look at the VBA behind the individual sheet to see the Event Code. Then I created a macro that Refreshed the Pivot Table.

    So here is what happens. When you add anything to columns E,F or G, the range I've called "PivotDNR" gets bigger and it refreshes the Pivot Table in Col A. Keep studying and it will make sense, but it isn't an obvious progression from simple Excel formulas.
    Attached Files Attached Files
    Last edited by MarvinP; 02-09-2014 at 04:15 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Registered User
    Join Date
    02-09-2014
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using a drop-list to categorize and insert cells

    MarvinP, that is exactly along the lines of what I am looking for. I will study this thoroughly and report back if I have any other questions. Thank you so much.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Using a drop-list to categorize and insert cells

    Hey Daemonion,

    If you put Validation or not, my sheet should work. It looked like you knew how to do validation but there is a new trick for you to use. Instead of having a validation list that refers to a range like "K1:k10", you can now use the DNR NAME of the range in the validation list range input box. As you add more words to your list the list will grow without needing to change anything. Read up on DNRs.

    http://www.bettersolutions.com/excel...G820716330.htm or
    http://www.vertex42.com/ExcelArticle...ed-ranges.html

+ 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] Categorize drop down list
    By Vince in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  2. [SOLVED] Categorize drop down list
    By DM Unseen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  3. [SOLVED] Categorize drop down list
    By Vince in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. Categorize drop down list
    By Vince in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Categorize drop down list
    By Vince in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11: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