Solved

Excel 2010 Compare Columns

Posted on 2013-01-22
3
198 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

762 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

21 Experts available now in Live!

Get 1:1 Help Now