![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
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. |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
try =(A6 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. |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
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 ] |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
Thanks Aladin I wondered why the formula did not show. Dave Patton |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|