Solved

Formula to find equal amount

Posted on 2014-03-13
4
140 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
  • 2
  • 2
4 Comments
 
LVL 39

Expert Comment

by:nutsch
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
like this?

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

Author Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now