+ Reply to Thread
Results 1 to 4 of 4

IF THEN statement and Tables

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    IF THEN statement and Tables

    I am attempting to create a table in excel that will automatically fill out another table depending on the outcome. For example, if A3> 0, then A1, but if it is not, then check A4>0, then A4, etc. I've attempted it in this manner so far, but when I get past the first one I always seem to get repeating outcomes. For example, if A1=0 and A2=0 , then it will move to A3 but A1 and A2 will have the same result as A3.

    If you don't understand, then I will try to elaborate or show a photo.
    Last edited by markmkramer; 10-25-2012 at 06:07 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: IF THEN statement and Tables

    Try showing a spreadsheet (Go Advanced> Manage Attachments) Show what you have and what you want.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: IF THEN statement and Tables

    I have attached an example of what I want to see. My coding has caused duplicate entries in the receipt section.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by markmkramer; 10-25-2012 at 04:21 PM.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: IF THEN statement and Tables

    In G6, copied down

    =IFERROR(INDEX(A$4:A$11,SMALL(IF($E$4:$E$11=0,100000,ROW($E$4:$E$11)-3),ROW(A1))),"") entered as an array (Use CNTRL SHFT ENTER instead of ENTER. You'll see {} around the formula)
    Similar formulas in H6 and I6

    In J6, just as a check, used
    =IF(ISNUMBER(I6),H6*I6,"") copied down (not an arrayed formula)
    See attachment
    Does that work for you?
    Attached Files Attached Files

+ 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