#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF AND problem


I am trying to return a sum using IF AND

My obejective is IF E9 = 3 AND ISNUMBER in Z9 then take F9 multipled by BE9,
G9 multiplied by BF9, H9 multiplied by BG9 and so on.

F9, G9 & H9 will be various amounts for different products.

I have percentages in BE9, BF9 & BG9

This is what I have tried:

=IF(AND(E9=3,ISNUMBER(Z9)),(F9*BE9,G9*BF9,H9*BG9,0 )

I know that the formula is incorrect, please can anyone help?
Many thanks
Amanda
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default IF AND problem

=IF(AND(E9=3,ISNUMBER(Z9)),F9*BE9&", "&G9*BF9&", "&H9*BG9,0)


"Amanda D" wrote:


I am trying to return a sum using IF AND

My obejective is IF E9 = 3 AND ISNUMBER in Z9 then take F9 multipled by BE9,
G9 multiplied by BF9, H9 multiplied by BG9 and so on.

F9, G9 & H9 will be various amounts for different products.

I have percentages in BE9, BF9 & BG9

This is what I have tried:

=IF(AND(E9=3,ISNUMBER(Z9)),(F9*BE9,G9*BF9,H9*BG9,0 )

I know that the formula is incorrect, please can anyone help?
Many thanks
Amanda

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default IF AND problem


Thanks for the quick response.

I have just entered this in and the result shows in the cell as:

200,100,200

and so on.

I am getting the correct answers but need these adding together so this
answer would be 500

Can you help again?
Thanks


"Teethless mama" wrote:

=IF(AND(E9=3,ISNUMBER(Z9)),F9*BE9&", "&G9*BF9&", "&H9*BG9,0)


"Amanda D" wrote:


I am trying to return a sum using IF AND

My obejective is IF E9 = 3 AND ISNUMBER in Z9 then take F9 multipled by BE9,
G9 multiplied by BF9, H9 multiplied by BG9 and so on.

F9, G9 & H9 will be various amounts for different products.

I have percentages in BE9, BF9 & BG9

This is what I have tried:

=IF(AND(E9=3,ISNUMBER(Z9)),(F9*BE9,G9*BF9,H9*BG9,0 )

I know that the formula is incorrect, please can anyone help?
Many thanks
Amanda

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF AND problem

Assuming your "and so on" means to keep multiplying, then adding, till the
end of the grid, try this formula...

=IF(AND(E9=3,ISNUMBER(Z9)),SUMPRODUCT(OFFSET(F9,0, 0,1,ROWS(1:100))*OFFSET(BE9,0,0,1,ROWS(1:100))),0)

Rick


"Amanda D" <Amanda D @discussions.microsoft.com wrote in message
...

I am trying to return a sum using IF AND

My obejective is IF E9 = 3 AND ISNUMBER in Z9 then take F9 multipled by
BE9,
G9 multiplied by BF9, H9 multiplied by BG9 and so on.

F9, G9 & H9 will be various amounts for different products.

I have percentages in BE9, BF9 & BG9

This is what I have tried:

=IF(AND(E9=3,ISNUMBER(Z9)),(F9*BE9,G9*BF9,H9*BG9,0 )

I know that the formula is incorrect, please can anyone help?
Many thanks
Amanda


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF AND problem

Replace the occurrences of &", "& by +
--
David Biddulph

"Amanda D" wrote in message
...

Thanks for the quick response.

I have just entered this in and the result shows in the cell as:

200,100,200

and so on.

I am getting the correct answers but need these adding together so this
answer would be 500

Can you help again?
Thanks


"Teethless mama" wrote:

=IF(AND(E9=3,ISNUMBER(Z9)),F9*BE9&", "&G9*BF9&", "&H9*BG9,0)


"Amanda D" wrote:


I am trying to return a sum using IF AND

My obejective is IF E9 = 3 AND ISNUMBER in Z9 then take F9 multipled by
BE9,
G9 multiplied by BF9, H9 multiplied by BG9 and so on.

F9, G9 & H9 will be various amounts for different products.

I have percentages in BE9, BF9 & BG9

This is what I have tried:

=IF(AND(E9=3,ISNUMBER(Z9)),(F9*BE9,G9*BF9,H9*BG9,0 )

I know that the formula is incorrect, please can anyone help?
Many thanks
Amanda





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default IF AND problem


Thanks for your help, that works a treat!

"David Biddulph" wrote:

Replace the occurrences of &", "& by +
--
David Biddulph

"Amanda D" wrote in message
...

Thanks for the quick response.

I have just entered this in and the result shows in the cell as:

200,100,200

and so on.

I am getting the correct answers but need these adding together so this
answer would be 500

Can you help again?
Thanks


"Teethless mama" wrote:

=IF(AND(E9=3,ISNUMBER(Z9)),F9*BE9&", "&G9*BF9&", "&H9*BG9,0)


"Amanda D" wrote:


I am trying to return a sum using IF AND

My obejective is IF E9 = 3 AND ISNUMBER in Z9 then take F9 multipled by
BE9,
G9 multiplied by BF9, H9 multiplied by BG9 and so on.

F9, G9 & H9 will be various amounts for different products.

I have percentages in BE9, BF9 & BG9

This is what I have tried:

=IF(AND(E9=3,ISNUMBER(Z9)),(F9*BE9,G9*BF9,H9*BG9,0 )

I know that the formula is incorrect, please can anyone help?
Many thanks
Amanda




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF AND problem

Perhaps we should reduce the 100 cell offset range to 50 cells lest the one
starting at F9 overlaps the one starting at BE...

=IF(AND(E9=3,ISNUMBER(Z9)),SUMPRODUCT(OFFSET(F9,0, 0,1,ROWS(1:50))*OFFSET(BE9,0,0,1,ROWS(1:50))),0)

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Assuming your "and so on" means to keep multiplying, then adding, till the
end of the grid, try this formula...

=IF(AND(E9=3,ISNUMBER(Z9)),SUMPRODUCT(OFFSET(F9,0, 0,1,ROWS(1:100))*OFFSET(BE9,0,0,1,ROWS(1:100))),0)

Rick


"Amanda D" <Amanda D @discussions.microsoft.com wrote in message
...

I am trying to return a sum using IF AND

My obejective is IF E9 = 3 AND ISNUMBER in Z9 then take F9 multipled by
BE9,
G9 multiplied by BF9, H9 multiplied by BG9 and so on.

F9, G9 & H9 will be various amounts for different products.

I have percentages in BE9, BF9 & BG9

This is what I have tried:

=IF(AND(E9=3,ISNUMBER(Z9)),(F9*BE9,G9*BF9,H9*BG9,0 )

I know that the formula is incorrect, please can anyone help?
Many thanks
Amanda



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
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
problem with a conditional max problem Brian Cornejo Excel Discussion (Misc queries) 1 February 18th 05 06:25 PM


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