+ Reply to Thread
Results 1 to 8 of 8

Extract Data with Conditions

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Extract Data with Conditions

    Hi,

    I have sample data in columns A:D and would like to extract from it to column H the count associated with each country.

    The required outcome is in G:H.

    Can someone please suggest a formula for column H that will accomplish this?

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 06-17-2023 at 05:51 AM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Extract Data with Conditions

    with Power Query

    PRODUCT NAME SALES RANK %
    UNITED KINGDOM
    25
    UNITED STATES
    76
    SPAIN
    17
    JAPAN
    121
    Attached Files Attached Files

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Extract Data with Conditions

    With a formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Extract Data with Conditions

    Thank you both very much!

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract Data with Conditions

    You are welcome
    Have a nice day

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Extract Data with Conditions

    If there is an after party, is here a different solution:

    Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Extract Data with Conditions

    You're welcome. Thanks for the rep.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Extract Data with Conditions

    @Hans: that's very neat. Feels a bit like cheating . Anyway, makes my effort look either over-engineered, or just a bit round the houses

+ 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. Extract Data with Conditions
    By andrewc in forum Excel General
    Replies: 3
    Last Post: 02-03-2023, 02:31 PM
  2. [SOLVED] Extract Data with Conditions
    By andrewc in forum Excel General
    Replies: 3
    Last Post: 08-12-2022, 08:35 AM
  3. [SOLVED] Extract Data with Conditions
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 05-22-2021, 02:57 PM
  4. Extract Data with Conditions
    By andrewc in forum Excel General
    Replies: 7
    Last Post: 11-19-2020, 06:40 AM
  5. Extract Data - 2 Conditions
    By ionelz in forum Excel General
    Replies: 4
    Last Post: 03-15-2020, 03:22 PM
  6. [SOLVED] Extract Data - 2 conditions
    By ionelz in forum Excel General
    Replies: 6
    Last Post: 01-08-2020, 11:27 PM
  7. [SOLVED] Extract Data from one to another using conditions
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-26-2014, 07:36 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