+ Reply to Thread
Results 1 to 4 of 4

How do I mix if with then referance cells

  1. #1
    Registered User
    Join Date
    03-06-2011
    Location
    Cleveland, Ohio USA
    MS-Off Ver
    Excel 2003
    Posts
    30

    How do I mix if with then referance cells

    Here is the formula I want to write:
    If sheet1 D4 is yes, then in sheet 2 row 3 referance sheet 1 cells E4;A4;B4:C4, If no do nothing

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How do I mix if with then referance cells

    Not sure how clear your question is, but perhaps

    =IF('Sheet1'!$D4="Yes",'Sheet1'!E4,"")

    =IF('Sheet1'!$D4="Yes",'Sheet1'!A4,"") copied acoss 2 more cells.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-06-2011
    Location
    Cleveland, Ohio USA
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: How do I mix if with then referance cells

    First of all I made a mistake, it should be "if no". What I am trying to do is to have excel make a list on sheet2 of the invoices on sheet1 that are marked "no" for not paid.

    Sheet1 contains invoices. Sheet2 will be my outstanding account list.

    Sheet1 is set -up as follows:
    A4 Date B4 Invoice# C4Amount D4 Paid-Y/N E4 Customer Name.

    On Sheet2 which will be a list of oustanding Invoices.

    So, on Sheet2 A3 I need a formula that will produce Customer Name; Date; Invoice#, and Amount, if Sheet1 D4 is "no".

    I need a formula on Sheet2 A3 that sais If Sheet1 D4 is "no" then Referance Sheet1 E4,A4,B4,C4.

    In other words list all customers with their relative information that are marked no for not paid on sheet1 columD.

    Perhaps there is a better way? I just want a liston Sheet2 that contains the Customer Names; Dates; Invoice #'s, and amounts, of the invoices on Sheet1 that are marked "no" in colum D
    Last edited by jpeirano; 03-10-2011 at 08:27 PM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How do I mix if with then referance cells

    Your explanation leads, me anyways, to believe that you are only concerned with row 4.. which apparently you are not, it seems...

    So, first off let's add a helper column to your Sheet1.

    In a free column, say column F, enter in F2 (assuming the list starts at row 2), =IF(D2="no",COUNT(D$1:D1)+1,"") and copy down. This identifies sequentially the matches found

    In another column enter formula =MAX(F:F) to get the last number.

    Then in Sheet2, A3 enter formula:

    =IF(Rows($A$1:$A1)>'Sheet1'!$G$2,"",INDEX('Sheet1'!E:E,MATCH(ROWS($A$1:$A1),'
    Sheet1'!$F:$F)))

    wher Sheet1!G2 contains the MAX() formula...

    Then copy this formula down.

    You similar formula in next column indexing Sheet!A:A, then copy across 2 more columns and down to get the A, B, C column information.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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