+ Reply to Thread
Results 1 to 2 of 2

Ascending and Descending Output

  1. #1
    Registered User
    Join Date
    05-07-2021
    Location
    Philippines
    MS-Off Ver
    2019
    Posts
    1

    Ascending and Descending Output

    Hi All,

    Let say if got 4 cells A, B, C and D.

    when there is input like any numbers or alphabets, i should able to get out based on below conditions in Ascending or Descending order.

    A EQUAL OR LESS THAN B
    B EQUAL OR GREATHER THAN A BUT EQUAL OR LESS THAN C
    C EQUAL OR GREATHER THAN B BUT EQUAL OR LESS THAN D
    D EQUAL OR GREATHER THAN C


    I dont know whether must use vbd code or formula to get this outputs and no dont know the right keywords to search in google.

    I've attched the excel file for better your understanding.

    Please help me. Thank You.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Ascending and Descending Output

    Hello bramacharya and Welcome to Excel Forum.
    I removed the blank line (6) and moved the other lines up.
    The formula for columns labeled A:C is: =IF(MIN(B$6:B6)=A$6,"",C$6-ROWS(A$1:A1)+1)
    The formula for the column labeled D is: =IF(D$6+ROWS(D$1:D1)-1>=10,"",D$6+ROWS(D$1:D1)-1)
    The formulas are applied to the two tables with numeric values.
    I will have to give further consideration as to how CODE and CHAR might be used to produce the results for the table with alphabetic values.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. macro ascending/descending
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-02-2016, 04:54 PM
  2. macro ascending/descending
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2016, 10:37 AM
  3. [SOLVED] Fix Sub row label instead of using Sort by Ascending or Descending
    By so_nice3 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-18-2014, 02:21 AM
  4. How do you do Ascending - Descending within same Code
    By Aeneren in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2014, 09:18 PM
  5. ascending - descending
    By Bonnie WLU in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 06-17-2009, 08:53 AM
  6. create descending or ascending dates
    By djarcadian in forum Excel General
    Replies: 1
    Last Post: 02-18-2008, 10:10 PM
  7. sort function - from ascending to descending
    By jimmyp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2006, 02:15 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