#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default If Formula??

I have 10 cells with different prices. I want to be able to automatically
calculate, and I am not sure of the formula that will allow me to do this. I
want the formula to automatically look at the list of prices and IF the price
is greater than the price in column A, then it will look in column B. It it
is not greater than column B, that price will be put in the cell with the
formula. If the price is not greater than column B, then it will move down
the remainding columns until it finds the price that is not greater than.
Any help with this would be GREATLY appreciated.
--
Thanks--
Bambi
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 740
Default If Formula??

Hi Bambi,

Assuming your orig. search price is in A1
and the 10 prices are in A2:J2
please inform IF
1. Any possibility that there will be blank cell (no price) within A2:J2 ? .
2. Are the 10 prices arranged in which order (ascending, random, descending) ?

regards
--
*****
birds of the same feather flock together..



"Bambi Williams" wrote:

I have 10 cells with different prices. I want to be able to automatically
calculate, and I am not sure of the formula that will allow me to do this. I
want the formula to automatically look at the list of prices and IF the price
is greater than the price in column A, then it will look in column B. It it
is not greater than column B, that price will be put in the cell with the
formula. If the price is not greater than column B, then it will move down
the remainding columns until it finds the price that is not greater than.
Any help with this would be GREATLY appreciated.
--
Thanks--
Bambi

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default If Formula??

Hi,

Not sure if this is what you want but this will sum every price in column A
that is less than the price in column B on the same row.

=SUMPRODUCT(--(A1:A10<B1:B10),B1:B10)

HTH
Jean-Guy

"Bambi Williams" wrote:

I have 10 cells with different prices. I want to be able to automatically
calculate, and I am not sure of the formula that will allow me to do this. I
want the formula to automatically look at the list of prices and IF the price
is greater than the price in column A, then it will look in column B. It it
is not greater than column B, that price will be put in the cell with the
formula. If the price is not greater than column B, then it will move down
the remainding columns until it finds the price that is not greater than.
Any help with this would be GREATLY appreciated.
--
Thanks--
Bambi

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default If Formula??

There will not be any blank cells and the order is ascending

Thanks--
Bambi


"driller" wrote:

Hi Bambi,

Assuming your orig. search price is in A1
and the 10 prices are in A2:J2
please inform IF
1. Any possibility that there will be blank cell (no price) within A2:J2 ? .
2. Are the 10 prices arranged in which order (ascending, random, descending) ?

regards
--
*****
birds of the same feather flock together..



"Bambi Williams" wrote:

I have 10 cells with different prices. I want to be able to automatically
calculate, and I am not sure of the formula that will allow me to do this. I
want the formula to automatically look at the list of prices and IF the price
is greater than the price in column A, then it will look in column B. It it
is not greater than column B, that price will be put in the cell with the
formula. If the price is not greater than column B, then it will move down
the remainding columns until it finds the price that is not greater than.
Any help with this would be GREATLY appreciated.
--
Thanks--
Bambi

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 740
Default If Formula??

Bambi

first one: IF the price is greater than the price in column A, then it will
look in column B. If it is not greater than column B, that price will be put
in the cell with the formula.
second one : If the price is not greater than column B, then it will move
down
the remainding columns until it finds the price that is not greater than.

i have some confusion between the first and second one....

First one: if u want the nearest Price greater than or equal the search
price...
on A1 = search price
on A2:J2 columns of prices
=MIN(IF((A2:J2=A1),A2:J2))
press ctrl-shft-enter

Second: if u want the least price which is NOT GREATER THAN THE search
price...
on A1 = search price
on A2:J2 columns of prices
=IF((A2:J2<=A1),A2:J2,"ALL PRICES ARE GREATER THAN YOUR SEARCH PRICE")
press ctrl-shft-enter

regards



--
*****
birds of the same feather flock together..



"Bambi Williams" wrote:

There will not be any blank cells and the order is ascending

Thanks--
Bambi


"driller" wrote:

Hi Bambi,

Assuming your orig. search price is in A1
and the 10 prices are in A2:J2
please inform IF
1. Any possibility that there will be blank cell (no price) within A2:J2 ? .
2. Are the 10 prices arranged in which order (ascending, random, descending) ?

regards
--
*****
birds of the same feather flock together..



"Bambi Williams" wrote:

I have 10 cells with different prices. I want to be able to automatically
calculate, and I am not sure of the formula that will allow me to do this. I
want the formula to automatically look at the list of prices and IF the price
is greater than the price in column A, then it will look in column B. It it
is not greater than column B, that price will be put in the cell with the
formula. If the price is not greater than column B, then it will move down
the remainding columns until it finds the price that is not greater than.
Any help with this would be GREATLY appreciated.
--
Thanks--
Bambi

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 05:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"