?
Solved

Formula to find equal amount

Posted on 2014-03-13
4
Medium Priority
?
161 Views
Last Modified: 2014-03-17
I need a formula where

If Sheet1 I1 = "Yes" and if Sheet1:B1 value is found on Sheet2 in Column B then insert Sheet1 B1 into Sheet1 J1 else insert Sheet1 A1 into Sheet1 J1

Thanks in advance
0
Comment
Question by:leezac
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 39

Expert Comment

by:nutsch
ID: 39927943
in Sheet1 J1, use the following formula

=IF(AND(I1="Yes",NOT(ISNA(MATCH(B1,B:B,0)))),B1,A1)
0
 

Author Comment

by:leezac
ID: 39927962
I tried to edit before someone posted.  

If I1 = "Yes" and  Sheet1 B1 = Sheet2 A (any row or is a match)
then insert Sheet 2's value from column B in J1 on Sheet1

else if  I1 = "No" then insert Sheet1 A1 value into J1


Sorry - I tried to edit. Hopefully it will be easy to change.
0
 
LVL 39

Accepted Solution

by:
nutsch earned 2000 total points
ID: 39928013
like this?

=IF(I1="Yes",IFERROR(VLOOKUP(B1,Sheet2!A:B,2,0),A1),A1)
0
 

Author Comment

by:leezac
ID: 39928309
Yes, I believe will work..  Will test tomorrow -- Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question