Solved

Excel 2010 Compare Columns

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Office.Com /myAccount 9 40
DBF to ... Converter 5 40
Most Consistent Performer 4 20
Input Data Using a unique ID from another sheet in Excel 3 5
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

910 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

19 Experts available now in Live!

Get 1:1 Help Now