If / then function

G

Guest

Guest
I have been trying to enter a funtion into a cell to check that if that particular cell,from sheet 1, contains a lower total (number) than each of 4 to 5 totals in other cells on sheet 1, then the amount from another cell on sheet 1 is to be reflected in a cell on sheet 2. I'll reference cells in order to give you an idea of what I'm trying to do.
If (sheet1)A6<B6,C6,D6,E6 AND F6, then reflect the number contained in (sheet 1) A2 in (sheet 2) A2. Using multiple sheets and cells, I just can't get this formula to work. Any help would be great. Thanks
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
On 2002-03-13 10:32, Anonymous wrote:
I have been trying to enter a funtion into a cell to check that if that particular cell,from sheet 1, contains a lower total (number) than each of 4 to 5 totals in other cells on sheet 1, then the amount from another cell on sheet 1 is to be reflected in a cell on sheet 2. I'll reference cells in order to give you an idea of what I'm trying to do.
If (sheet1)A6 < B6,C6,D6,E6 AND F6, then reflect the number contained in (sheet 1) A2 in (sheet 2) A2. Using multiple sheets and cells, I just can't get this formula to work. Any help would be great. Thanks

Must A6 be less than each of B6, C6, E6, and F6? If so,

in A2 in Sheet2 enter:

=(SUMPRODUCT((Sheet1!B6:F6>Sheet1!A6)+0)=5)*Sheet1!A2

which is more concise than IF with a long AND.
 
Upvote 0
try =(A6<MIN(B6:F6))*A2

add your sheet references and check what result you want for negative test.

The above gives value of a2 if true and
0 if false.
 
Upvote 0
On 2002-03-13 12:00, Dave Patton wrote:

try =(A6< MIN(B6:F6))*A2

add your sheet references and check what result you want for negative test.

The above gives value of a2 if true and
0 if false.

That's the right one, Dave. Guess i need more coffie.

Watch out for the less than sign: just disable HTML.

& glad to see you here.

Aladin
This message was edited by Aladin Akyurek on 2002-03-13 12:04
 
Upvote 0
Thanks Aladin

I wondered why the formula did not show.

Dave Patton
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,938
Members
448,534
Latest member
benefuexx

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