K
KLassman
I just learned about the INDEX/MATCH function while searching some of
the Excel tip pages - and I think I can make good use of it. What I
want to do is this:
worksheet 1 - is the format of our Income Statement
worksheet 2 (titled TB) is our Trial Balance.
I want worksheet 1 to read TB (worksheet 2) and pick up the YTD amount
for each account #.
I tested this out and my formula is working fine. However, sometimes
an account # on worksheet 1 doesn't appear on Worksheet 2 because there
wasn't any activity. In this case I get a $N/A.
I need to edit my formula so that if there is no "match" Excel will
enter -- (two dashes) or a zero . . . not the $N/A I am getting now.
The formula I'm using is this:
=INDEX(TB!$A$7:$E$111,MATCH(A7,TB!$A$7:$A$111,0),5)
What can I include in the formula so I won't get $N/As but -- when
there is no match?
Thanks in advance for any suggestions.
the Excel tip pages - and I think I can make good use of it. What I
want to do is this:
worksheet 1 - is the format of our Income Statement
worksheet 2 (titled TB) is our Trial Balance.
I want worksheet 1 to read TB (worksheet 2) and pick up the YTD amount
for each account #.
I tested this out and my formula is working fine. However, sometimes
an account # on worksheet 1 doesn't appear on Worksheet 2 because there
wasn't any activity. In this case I get a $N/A.
I need to edit my formula so that if there is no "match" Excel will
enter -- (two dashes) or a zero . . . not the $N/A I am getting now.
The formula I'm using is this:
=INDEX(TB!$A$7:$E$111,MATCH(A7,TB!$A$7:$A$111,0),5)
What can I include in the formula so I won't get $N/As but -- when
there is no match?
Thanks in advance for any suggestions.