Solved

Excel 2010 Compare Columns

Posted on 2013-01-22
3
206 Views
Last Modified: 2013-01-22
I have an inventory spreadsheet that contains two columns that use VLOOKUP to find a discount multiplier. One column contains standard discount multipliers and the other special negotiated multipliers that only apply to certain items. Some of the items in the special negotiated multipliers contain #N/A because they only have a standard discount.

I want to add a column that will compare the two columns and take the lower multiplier but only when there is values in each column. If the special discount column contains #N/A it should show the standard discount.

How can I do that?
0
Comment
Question by:eseinc
  • 2
3 Comments
 
LVL 92

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 250 total points
ID: 38806485
Assuming that the first pair of standard and special factors is in B2:C2, use this array formula:

{=MIN(IF(NOT(ISNA(B2:C2)),B2:C2,""))}

Do not type in the curly braces.  Use Ctrl+Shift+Enter and not just Enter to finish it off.

(If you really need the higher value, then use MAX instead of MIN.)
0
 
LVL 23

Accepted Solution

by:
NBVC earned 250 total points
ID: 38806694
or a regular formula...

=IF(ISNA(C2),B2,MIN(B2:C2))

where column C contains the specially negotiated, and column B the standard discounts...
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 38806967
If only one of the columns can have an #N/A error, then NB_VC's simpler construction would work well.  If either column can have an #N/A, then you may need the array formula after all.

:)
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Spacing Anomaly 4 24
Rather Simple Formatting Question 6 24
Outlook 2013 License Question 8 28
Formula help - MIN 5 12
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
My experience with Windows 10 over a one year period and suggestions for smooth operation
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
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…

809 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