Trying to get the formula to include for text.
=IF(D6<>"",SUMIF(K$2:U$2,"Yes",K6:U6),"")
So if K6:U6 contains text instead of a number this will be returned in the cell
Trying to get the formula to include for text.
=IF(D6<>"",SUMIF(K$2:U$2,"Yes",K6:U6),"")
So if K6:U6 contains text instead of a number this will be returned in the cell
Please add you excel example, without confidentional information.
Please also add the desired (expected) result.
Notice my main language is not English.
I appreciate it, if you reply on my solution.
If you are satisfied with the solution, please mark the question solved.
You can add reputation by clicking on the star * add reputation.
I have manually input the "Nil" value highlighted in red
Maybe, like this.
See where you are coming from.
The result needs to be in cell G6 taken from the SUMIF. Basically extending the formula in cell G5 to include the text option.
Perhaps try HLOOKUP
=HLOOKUP("yes",H2:R6,5,0)
Audere est facere
Unless I'm doing something wrong the HLOOKUP does not give me the flexibility.
The test string is a variable.
If any column within cell range $H$2;$R$2 contains "Yes" and any cell intersecting that column contains either a numerical value or text string then that value is returned in the "Selected" column
OK, I'm not sure what you mean - can you show an example where HLOOKUP doesn't give you what you need.....and the required result in that case
Please Select the yellow cells for Validation text
OK, try this version in G6 copied down
=HLOOKUP("yes",H$2:R6,ROWS(H$2:R6),0)
Maybe like this.
See the green cells.
Hope this help you:
in column G :
in column B:Please Login or Register to view this content.
Please Login or Register to view this content.
Last edited by SDCh; 02-09-2013 at 06:58 PM.
In your post #3 you also sums the data in the whole row (H5:R5)
DutchPost #13Please Login or Register to view this content.
So my questions to you is what should be the action?Please Login or Register to view this content.
Please see the enclosed file with notes.
The result in column B is dependant upon where "Yes" is placed in Row $H$2:$R$2.
If "Yes" was placed in Column I then cell B9 should return 42.00
If "Yes" was placed in Column H then cell B9 should return "Excl"
I think the confusion has come where "Yes" was placed in $G$2. This value was originally a control value only.(I have now removed it)
OK, I confused in here, actually what you want with column B?
If you only want get the value between column where "Yes" are intersect with row Item then this the code:
Why I confused, because on your first post column B has formula:Please Login or Register to view this content.
As you see, you want calculate column G, so what happen if the value of column G are "NIL" or "Excl"?Please Login or Register to view this content.
B9 is the sum of F9*G9 if E9 is blank.
Else IF E9 ISNUMBER then E9*G9.
Basically the Directors adjustment in £ overides the Directors adjustment in %
Hope I'm not confusing things too much here.
I change my code on column B:
As you see, if G9 ="NIL" or G9="Excl" it will take whatever the value that match on intersection.Please Login or Register to view this content.
By the way, formula on column G is like you want?
Gents thanks for your help!
SDCh, Thank you, for showing me the light!!
Final [SOLVED] draft enclosed
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks