+ Reply to Thread
Results 1 to 8 of 8

Question on IF(AND or perhaps IF(OR in formula

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    MN
    MS-Off Ver
    Excel 2013
    Posts
    62

    Question on IF(AND or perhaps IF(OR in formula

    I am stymied in my attempt to develop a formula that would check for the contents of a cell and if the cell is blank, fill in the cell with the value of the cell below, if that cell below is empty, continue checking until it finds a value and then fill in all empty cells (up to a cell that originally contained data) with that value.

    I've attached my work thus far, the area I am working are all on the Summary tab, columns AA, AB and AC. For example, I'd like to put a formula in AA3 to AA16 that would result in the value 611.500. Like wise, I'd like a formula in cell AB18 that would result in 309.800, a formula in cell AB16 that would result in 306.5000 and a formula in cells AB3:AB14 that result in 305.000

    I suspect that a IF(AND or a IF(OR formula might work, perhaps a formula that uses an array but I do not know how - would appreciate any and all help.

    Thanks,
    Tom
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Question on IF(AND or perhaps IF(OR in formula

    Hi,

    In AE3, and copied down, use this array formula to remove the blanks from your list

    =IFERROR(INDEX($AA$3:$AA$74, SMALL(IF(TRIM($AA$3:$AA$74)="", "", ROW($AA$3:$AA$74)-MIN(ROW($AA$3:$AA$74))+1), ROW(1:1))),"")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    01-06-2012
    Location
    MN
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: Question on IF(AND or perhaps IF(OR in formula

    Sweep - I gave your array formula a try (copied it directly into the spreadsheet) and instead of data in cells (copying the data upward inot the blank cells, all cell are blank, including the ones that formerly contained data. Any thoughts? I really apprecaite your efforts. tpk

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Question on IF(AND or perhaps IF(OR in formula

    Have you entered the formula as an array? Hold CTRL and SHIFT while pressing ENTER.

  5. #5
    Registered User
    Join Date
    01-06-2012
    Location
    MN
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: Question on IF(AND or perhaps IF(OR in formula

    Sweep - I really appercaite your efforts and no, I was not entering it as an array. I have entered the formula as an array and am now presented with a different issue. The array formula is not resulting in the correct values. I am not sure how to get the the array formula to result in the following data AE3:AE17 611.50, AE18:AE19 618.25 AE20:AE21 623.25 AE22:AE23 580.00 AE24:AE26 561 and so forth. I am not sure that I am explaining it clearly - will do my best and again, thanks

  6. #6
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Question on IF(AND or perhaps IF(OR in formula

    Could you post a version of your sheet with the values where you expect them to be? ie, how the sheet should look?

  7. #7
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Question on IF(AND or perhaps IF(OR in formula

    Hi tommypkoch,
    Try this formula for AE3
    Please Login or Register  to view this content.
    and Fill Down

  8. #8
    Registered User
    Join Date
    01-06-2012
    Location
    MN
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: Question on IF(AND or perhaps IF(OR in formula

    That works, my thanks to Sweep and huuthang_bd for getting me this far.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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