Hi,

Insert followibg formula in D1 cell.

=if(and(or(a1=1,b1=1),c1>23400),3,0)

 Hope this is what u want.

Regards

swapnil,
On Oct 9, 2012 6:57 PM, "Henning Deschka" <kie...@freenet.de> wrote:

> Hi NG,
>
> I need to insert a function into cell D1 with an Excel2007 macro that
> executes the following:
>
>                 A         B         C             D
> row 1                               1234        3
> row 2        1                     123444
> row 3                    1         43322
> row 4                               34
> row 5                    1         12
> row 6                               432123
> row 7                               43234
> row 8                    1         3
> row 9                    1         33333
> row 10      1                     1111
>
> The entire table has to be considered by the function (A1:C10).
> Each line has to be evaluated on its own, eg A1:C1.
> If the contents of A or B are 1 AND the value of C is > 23400, then the
> function has succeeded.
>
> If the function succeeds, the final result of the function has to be
> increased by 1.
>
> In this example, the function has succeeded in the following rows:
>
> row 2
> row 3
> row 9
>
> In this example, the function was executed successfully three times - so
> the final result of the function is 3.
>
> Can someone please help by creating a function dealing with this problem?
>
> TIA,
> Henning
>
> --
> Join official facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES (1120+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5) Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> 6) Jobs posting is not allowed.
>
> 7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>
> NOTE : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To post to this group, send email to excel-macros@googlegroups.com.
> To unsubscribe from this group, send email to
> excel-macros+unsubscr...@googlegroups.com.
>
>
>

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


Reply via email to