+ Reply to Thread
Results 1 to 4 of 4

Fill cells base on some IF and MATCH formula

  1. #1
    Registered User
    Join Date
    05-24-2014
    Location
    Bratislava, Slovakia
    MS-Off Ver
    2007
    Posts
    11

    Fill cells base on some IF and MATCH formula

    Hi

    I need to fill cells - actual balance, base on these conditions:
    1. account nr.
    2. date, if there is no date balance than have to fill previous cell (date balance)

    I did this, but it doesn't fill missing date:

    =IF(MATCH(1,($B$2:$B$30=E3)*($A$2:$A$30=$F$2),0),VLOOKUP(E3,$B:$C,2,FALSE),F2)

    thanks

    fill.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Fill cells base on some IF and MATCH formula

    Try this regular formula, copied down, and the copied across...
    =INDEX($C$2:$C$30,MATCH($E3&" "&F$2,INDEX($B$2:$B$30&" "&$A$2:$A$30,0),0))

    Note that not all dates have a match with the account number. To hide the error answers, use this...
    =IFERROR(INDEX($C$2:$C$30,MATCH($E3&" "&F$2,INDEX($B$2:$B$30&" "&$A$2:$A$30,0),0)),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Fill cells base on some IF and MATCH formula

    This is based on the formula by Ford and is only good for a maximum of 2 consecutive errors.

    In E3 enter:

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


    In I3 enter:

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


    Spaces are used to show the corrections made by IFERROR statements.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    05-24-2014
    Location
    Bratislava, Slovakia
    MS-Off Ver
    2007
    Posts
    11

    Re: Fill cells base on some IF and MATCH formula

    Thank you very much

+ 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. Micro to match two cells & fill relative cells
    By SHEIKH TALIB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2014, 05:07 PM
  2. lloop to fill different cells regarding an Data base
    By nec11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-28-2013, 10:23 AM
  3. Match and fill up the blank cells
    By onenessboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2012, 08:27 AM
  4. Replies: 1
    Last Post: 09-07-2011, 05:57 PM
  5. Inset rows & fill that rows base on formula.
    By johncena in forum Excel General
    Replies: 9
    Last Post: 02-15-2010, 05:13 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