+ Reply to Thread
Results 1 to 9 of 9

match formula only on visible rows

  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    31

    match formula only on visible rows

    Hi all,

    i'm trying to write a formula that searches a value in a range, the problem being that the range may or may not contain hidden rows. I need it to sum up values only on visible rows and only if it does not find a specific value in a range, also only on visible rows. If it does find the specific value, i need it to return "salary on 5000"

    see sample file attached. depending on value selected in I2, rows are shown/hidden. I need the formula in I14 to work only on visible rows
    I used subtotal, but I need match to work similar as well.


    =IF(ISERROR(MATCH(5000,F3:F7,0)),SUBTOTAL(109,F3:F7),"salary of 5000")
    Thank you in advance :D
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: match formula only on visible rows

    Have a look into recent thread: http://www.excelforum.com/excel-form...ml#post4131780 you can adopt similar method.
    Best Regards,

    Kaper

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,658

    Re: match formula only on visible rows

    Try:

    Please Login or Register  to view this content.
    Quang PT

  4. #4
    Registered User
    Join Date
    08-08-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    31

    Re: match formula only on visible rows

    Thank you.

    But now I realised I need it to do somenthing else, explanation bellow:

    If somewhere in the range F3:F7 I have "no salary" and only if the row is visible, then in I14 i need to have "no salary".
    If I have values, then I need the sum of those values that are on visible rows.

    how should I change your formula:
    Please Login or Register  to view this content.
    It's quite complicated to explain, hopefully I made myself understood

    Thanks.

  5. #5
    Registered User
    Join Date
    08-08-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    31

    Re: match formula only on visible rows

    and the modified sample attached
    Attached Files Attached Files

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: match formula only on visible rows

    May be?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    (edit: answered before you posted the attachment - will check in a minute)

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: match formula only on visible rows

    yes it seems to work how I understood:
    - if in visible is "no sallary" then result is no sallary
    __- if not then if in visible is 5000 then result is sallary of 5000
    ____- otherwise it is sum of visible sallaries

  8. #8
    Registered User
    Join Date
    08-08-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    31

    Re: match formula only on visible rows

    actually, I didn't need the part with "salary of 5000" anymore.

    I managed to modify it and it works great! Thank you so much! You saved me :D

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


    not sure I fully understand the offset part, can u walk me through it?

    Thank you again.

  9. #9
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: match formula only on visible rows

    The offset is used here to create a table of subtotal results each for single row. See how it corresponds with helper column in the linked above thread.

  10. #10
    Registered User
    Join Date
    08-08-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    31

    Re: match formula only on visible rows

    ok, thank you again.

+ 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] Applying formula to visible rows only
    By denisirio in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-13-2015, 01:45 PM
  2. Formula to count number of visible rows, and formula to count visible blanks
    By radoncadonc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2015, 04:19 PM
  3. [SOLVED] Applying formula only to visible rows.
    By Folshot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2014, 12:01 PM
  4. Table Object after filtering - Count visible rows & First visible row
    By limalf in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-13-2013, 07:29 PM
  5. [SOLVED] using Index, Match, Large, and Visible Cells in one formula
    By jomili in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-10-2013, 01:58 AM
  6. Use visible rows from autofilter to build Pivot table. Or use visible rows to Copy/Paste
    By mwhitedesigns in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 10:34 AM
  7. Resize Visible Rows based only on Visible Columns text
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2009, 10:55 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