+ Reply to Thread
Results 1 to 2 of 2

Query editor to show Others as MISC.

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Query editor to show Others as MISC.

    I have a list of data with the Header (Type). Under Type, there are about 1000+ Tax, 300+ Custom, 2000+ Refund and 500+ of other desrciption (random).

    I want to do a connection between another table.
    With Header Type and Description. I wanted Tax and Custom to show as Tax, Refund as Refund and other descruption as Misc. How do i do for the Misc part?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Query editor to show Others as MISC.

    One way I can think of doing this is to make a small table like
    Item | Category
    Tax | Tax
    Custom | Tax
    Refund | Refund

    Then in a helper column reference this range in a VLOOKUP.
    =IFERROR(VLOOKUP(A2,$A$2:$B$4,2,FALSE),"Misc")

    Then you can use the helper column as a filter or to sort on.

    This can also be done with nested if statements instead of a VLOOKUP and possibly just plain lookup. I like the flexibility VLOOKUP gives for "growth."
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Query Editor - Json formating
    By TheVulcan in forum Excel General
    Replies: 0
    Last Post: 07-03-2017, 02:30 AM
  2. Join attributes in the query editor
    By jkk92 in forum Excel General
    Replies: 1
    Last Post: 03-19-2017, 02:15 PM
  3. [SOLVED] power query editor - unpivot?
    By pccamara in forum Excel General
    Replies: 5
    Last Post: 09-07-2016, 10:26 AM
  4. [SOLVED] Determine module to show when opening VBA Editor?
    By Pedsdude in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-30-2014, 09:05 AM
  5. [SOLVED] Loop and find specific value or misc value, if misc then not equal to certain values
    By scott.s.fower in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2014, 09:28 PM
  6. [SOLVED] Microsoft Query editor opens but does not display in excel.
    By Fizzbear in forum Excel General
    Replies: 0
    Last Post: 02-23-2006, 04:50 PM
  7. [SOLVED] QUERY: auto clean VB code editor?
    By KevinGPO in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2005, 07:15 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