Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Logically Calculating Multiple Fields

Hello,

I would like to see if someone can help me with this calculation. If cell E2
is 10% or above, we would like cell H2 to add one for each cells of A2, B2
and C2 that have a score of 6 or higher.

Essentially:

If: A2=6, B2=6, C2=5 and E2=10% then H2=2.
And: A2=6, B2=6, C2=6 and E2=10% then H2=3

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Logically Calculating Multiple Fields

Try something like this...

=IF(E2 < 0.1, 0, COUNTIF(A2:C2, "=6"))
placed in H2
--
HTH...

Jim Thomlinson


"Nash13" wrote:

Hello,

I would like to see if someone can help me with this calculation. If cell E2
is 10% or above, we would like cell H2 to add one for each cells of A2, B2
and C2 that have a score of 6 or higher.

Essentially:

If: A2=6, B2=6, C2=5 and E2=10% then H2=2.
And: A2=6, B2=6, C2=6 and E2=10% then H2=3

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default Logically Calculating Multiple Fields

that depends if A2, B2 and C2 are values or formula's already. If they are
formula's, just add +if(e20.2,1,0)

If not, add a cell that adds A2 etc and +if(e20.2,1,0)

If that is not possible, then the only was is through VBA which is not easy
as you have to establish the change in E2 otherwise it will keep adding
values.
Either use a dummy cell with the old e2 value to establish this or use a
global variable to establish the change rather then the value.
For example, Write a Workbook_SheetCalculate macro that checks the value of
e2, then adds to the cells specified including the dummy cell (f2).

Sub Workbook_SheetCalculate
if range("e2")<range("f2")
if range("e2") 0.1 and range("f2") < 0.1 then
range("f2") = range("e2")
range("a2") = range("a2") + 1
range("b2") = range("b2") + 1
range("c2") = range("c2") + 1
else
range("f2") = range("e2")

end if
end sub


"Nash13" wrote:

Hello,

I would like to see if someone can help me with this calculation. If cell E2
is 10% or above, we would like cell H2 to add one for each cells of A2, B2
and C2 that have a score of 6 or higher.

Essentially:

If: A2=6, B2=6, C2=5 and E2=10% then H2=2.
And: A2=6, B2=6, C2=6 and E2=10% then H2=3

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Logically Calculating Multiple Fields

Okay, I lied. The sheet has gotten more difficult. This is essentially what
we are trying to do now but doesn't actually work.

=IF(V2 < 0.1, 0, COUNTIF(D2+F2+H2+J2+L2+N2+p2+R2, "=6"))


"Jim Thomlinson" wrote:

Try something like this...

=IF(E2 < 0.1, 0, COUNTIF(A2:C2, "=6"))
placed in H2
--
HTH...

Jim Thomlinson


"Nash13" wrote:

Hello,

I would like to see if someone can help me with this calculation. If cell E2
is 10% or above, we would like cell H2 to add one for each cells of A2, B2
and C2 that have a score of 6 or higher.

Essentially:

If: A2=6, B2=6, C2=5 and E2=10% then H2=2.
And: A2=6, B2=6, C2=6 and E2=10% then H2=3

Thank you

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Logically Calculating Multiple Fields

It looks like you are wanting the values form every second column. If the
values inbetween are not numbers then you can just specify the entire range
like this (countif requires that the range be contiguous)

=IF(V2 < 0.1, 0, COUNTIF(D2:R2, "=6"))

Otherwise I would be inclined to either re-arrange the data to be contiguous
or create a new contiguous section on the sheet (which you can hide)
refereing to D2+F2+H2+J2+L2+N2+p2+R2
--
HTH...

Jim Thomlinson


"Nash13" wrote:

Okay, I lied. The sheet has gotten more difficult. This is essentially what
we are trying to do now but doesn't actually work.

=IF(V2 < 0.1, 0, COUNTIF(D2+F2+H2+J2+L2+N2+p2+R2, "=6"))


"Jim Thomlinson" wrote:

Try something like this...

=IF(E2 < 0.1, 0, COUNTIF(A2:C2, "=6"))
placed in H2
--
HTH...

Jim Thomlinson


"Nash13" wrote:

Hello,

I would like to see if someone can help me with this calculation. If cell E2
is 10% or above, we would like cell H2 to add one for each cells of A2, B2
and C2 that have a score of 6 or higher.

Essentially:

If: A2=6, B2=6, C2=5 and E2=10% then H2=2.
And: A2=6, B2=6, C2=6 and E2=10% then H2=3

Thank you



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Logically Calculating Multiple Fields

Okay, I was thinking along those lines as well. Thank you

"Jim Thomlinson" wrote:

It looks like you are wanting the values form every second column. If the
values inbetween are not numbers then you can just specify the entire range
like this (countif requires that the range be contiguous)

=IF(V2 < 0.1, 0, COUNTIF(D2:R2, "=6"))

Otherwise I would be inclined to either re-arrange the data to be contiguous
or create a new contiguous section on the sheet (which you can hide)
refereing to D2+F2+H2+J2+L2+N2+p2+R2
--
HTH...

Jim Thomlinson


"Nash13" wrote:

Okay, I lied. The sheet has gotten more difficult. This is essentially what
we are trying to do now but doesn't actually work.

=IF(V2 < 0.1, 0, COUNTIF(D2+F2+H2+J2+L2+N2+p2+R2, "=6"))


"Jim Thomlinson" wrote:

Try something like this...

=IF(E2 < 0.1, 0, COUNTIF(A2:C2, "=6"))
placed in H2
--
HTH...

Jim Thomlinson


"Nash13" wrote:

Hello,

I would like to see if someone can help me with this calculation. If cell E2
is 10% or above, we would like cell H2 to add one for each cells of A2, B2
and C2 that have a score of 6 or higher.

Essentially:

If: A2=6, B2=6, C2=5 and E2=10% then H2=2.
And: A2=6, B2=6, C2=6 and E2=10% then H2=3

Thank you

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
Getting Excel MDI/SDI/Excel Instance to behave more logically mswlogo Setting up and Configuration of Excel 2 April 23rd 23 11:43 AM
subtotaling on multiple fields dan Excel Discussion (Misc queries) 1 September 28th 06 10:09 PM
Using COUNTIF on multiple fields [email protected] Excel Worksheet Functions 13 September 28th 06 12:57 PM
how do I add multiple fields together? aharrell Excel Worksheet Functions 1 September 1st 06 04:05 PM
Calculating fields in pivot tables kosciosco Excel Discussion (Misc queries) 2 June 6th 06 02:45 PM


All times are GMT +1. The time now is 08:58 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"