Help with formula

djs6025

New Member
Joined
Feb 6, 2012
Messages
40
Office Version
  1. 2016
Platform
  1. Windows
Hi Everybody,
I'm looking for a formula to put in column C that will display the lowest price from each row in column A and B. Some of the cells contain "N/A" so I want to make sure it doesn't return an error. I greatly appreciate any help you can give.

Example:

[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]N/A[/TD]
[TD]11.49[/TD]
[TD]11.49[/TD]
[/TR]
[TR]
[TD]5.49[/TD]
[TD]4.44[/TD]
[TD]4.44[/TD]
[/TR]
[TR]
[TD]17.99[/TD]
[TD]N/A[/TD]
[TD]17.99
[/TD]
[/TR]
[TR]
[TD]18.99[/TD]
[TD]N/A[/TD]
[TD]18.99[/TD]
[/TR]
[TR]
[TD]9.99[/TD]
[TD]10.99[/TD]
[TD]9.99[/TD]
[/TR]
</tbody>[/TABLE]

Thanks,
Dan
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
=IF(ISNUMBER(A2),IF(ISNUMBER(B2),IF(A2>B2,B2,A2),A2),B2)

Assuming that one of the values in the columns is always a number. If not, what would you want to put in column C?
 
Upvote 0
try below formula

=AGGREGATE(15,6,A1:B1,1)

value 1 (after A1:B1 range) indicates first small value from range, 2 indicates second small value from range and so on
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top