Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
carl
 
Posts: n/a
Default Help With If Formula

I have the following monitoring tool:

Engine Trading
1 TRUE
1 TRUE
1 TRUE
2 TRUE
2 FALSE
2 TRUE

I am looking for a formula to place in ColC of this table that will look at
the monitoring tool above and if all values for a given engine are "true",
return the value that is in ColB. I've filled in the table below with the
result I am trying to achieve.

Engine String Status
1 ABC ABC
2 EFG

Thank you in advance.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Help With If Formula

I'll assume that the monitoring data is on Sheet1 and the table you're trying
to compile on Sheet2 with column headers in row 1. In cell C2 on Sheet2,
enter the formula
=if(sumproduct(--(Sheet1!A$1:A$10000=a2),--(Sheet1!B$1:B$10000="FALSE"))=0,b2,"")
This counts the number of times FALSE appears with the particular engine,
and sets copies the value from b2 to c2 if the count is 0.
HTH. --Bruce


"carl" wrote:

I have the following monitoring tool:

Engine Trading
1 TRUE
1 TRUE
1 TRUE
2 TRUE
2 FALSE
2 TRUE

I am looking for a formula to place in ColC of this table that will look at
the monitoring tool above and if all values for a given engine are "true",
return the value that is in ColB. I've filled in the table below with the
result I am trying to achieve.

Engine String Status
1 ABC ABC
2 EFG

Thank you in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
carl
 
Posts: n/a
Default Help With If Formula

Thank you Brian. I tried this formula but it returns the value in b2 even if
some values in Sheet1!B$1:B$10000="FALSE" are indeed false.

Am I doing something wrong ?

"bpeltzer" wrote:

I'll assume that the monitoring data is on Sheet1 and the table you're trying
to compile on Sheet2 with column headers in row 1. In cell C2 on Sheet2,
enter the formula
=if(sumproduct(--(Sheet1!A$1:A$10000=a2),--(Sheet1!B$1:B$10000="FALSE"))=0,b2,"")
This counts the number of times FALSE appears with the particular engine,
and sets copies the value from b2 to c2 if the count is 0.
HTH. --Bruce


"carl" wrote:

I have the following monitoring tool:

Engine Trading
1 TRUE
1 TRUE
1 TRUE
2 TRUE
2 FALSE
2 TRUE

I am looking for a formula to place in ColC of this table that will look at
the monitoring tool above and if all values for a given engine are "true",
return the value that is in ColB. I've filled in the table below with the
result I am trying to achieve.

Engine String Status
1 ABC ABC
2 EFG

Thank you in advance.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Help With If Formula

Are the false values text or are they the results of logical comparisons? If
the latter, remove the quotes around the FALSE.
--Bruce

"carl" wrote:

Thank you Brian. I tried this formula but it returns the value in b2 even if
some values in Sheet1!B$1:B$10000="FALSE" are indeed false.

Am I doing something wrong ?

"bpeltzer" wrote:

I'll assume that the monitoring data is on Sheet1 and the table you're trying
to compile on Sheet2 with column headers in row 1. In cell C2 on Sheet2,
enter the formula
=if(sumproduct(--(Sheet1!A$1:A$10000=a2),--(Sheet1!B$1:B$10000="FALSE"))=0,b2,"")
This counts the number of times FALSE appears with the particular engine,
and sets copies the value from b2 to c2 if the count is 0.
HTH. --Bruce


"carl" wrote:

I have the following monitoring tool:

Engine Trading
1 TRUE
1 TRUE
1 TRUE
2 TRUE
2 FALSE
2 TRUE

I am looking for a formula to place in ColC of this table that will look at
the monitoring tool above and if all values for a given engine are "true",
return the value that is in ColB. I've filled in the table below with the
result I am trying to achieve.

Engine String Status
1 ABC ABC
2 EFG

Thank you in advance.



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
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
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
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
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 05:47 AM.

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

About Us

"It's about Microsoft Excel"