IF statements

jon2249

New Member
Joined
Aug 30, 2011
Messages
10
Hey guys!



I am trying to go from L to A in the Grey shaded area to find "1" OR "1A". If there is an x or any other number in the column it will go until it shows "1" or "1A". When it shows 1 in the cell, It will go up to the white shaded to find the price. The price is then posted in the yellow cells.

prices.jpg


I do apologize if this has been answered but I am uncertain if it is even an IF statement to complete this task. Please let me know if this is possible.

Thanks guys.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
How about
=SUMIF(B14:B25,"<>x",B1:B12)

Or if it has to be "1" or "1A" and nothing else then
=SUM(SUMIF(B15:B26,1,B1:B12),SUMIF(B15:B26,"1A",B1:B12))
 
Last edited:
Upvote 0
How about
=SUMIF(B14:B25,"<>x",B1:B12)

Hey Thanks for the reply,

What that did was find was take the sum of all the cells that had 1 in it. I am trying to go to the lowest value that has 1.

Different numbers will be in the grey area but as long as the value has a 1 or 1A the value should be posted of the Lowest price.

For instance the 2nd column the lowest 1 value is found in I. The yellow area is then posted with the value of I found in the table posted above.
 
Upvote 0
You should read that post. But if you really just want the quick answer then

=MIN(IF(B16:B27=1,B1:B12))
Ctrl+Shift+Enter
 
Upvote 0
You should read that post. But if you really just want the quick answer then

=MIN(IF(B16:B27=1,B1:B12))
Ctrl+Shift+Enter

Thanks VBACO!

it works great! The link does not show how i can check for "1" and "1A" at the same time is there a way to test 1 and 1A at the same time?


For Example: Column C
price2s.jpg
 
Upvote 0
There is probably a better way but using a nested if seems to work

=MIN(IF(B16:B27=1,B1:B12,IF(B16:B27="1A",B1:B12)))
Ctrl+Shift+Enter
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,390
Members
452,909
Latest member
VickiS

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