#1   Report Post  
Posted to microsoft.public.excel.misc
SJT SJT is offline
external usenet poster
 
Posts: 71
Default If Formula

I would like to create a formula that looks at the previous six cells in a
row and if they are all the same value it increased the value in the seventh
cell by a certain percentage. For example, if the cells in A1:F1 all had the
value of 100 it would put a value of 150 (100 plus 50% of 100) in G1. If the
values in A1:F1 were not the same it would simply put the value in F1. Thank
you in advance for your cooperation.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default If Formula

Use the "AND" function...

=IF(AND(A1=B1,B1=C1,C1=D1,D1=E1,E1=F1),F1*150%,F1)

"SJT" wrote:

I would like to create a formula that looks at the previous six cells in a
row and if they are all the same value it increased the value in the seventh
cell by a certain percentage. For example, if the cells in A1:F1 all had the
value of 100 it would put a value of 150 (100 plus 50% of 100) in G1. If the
values in A1:F1 were not the same it would simply put the value in F1. Thank
you in advance for your cooperation.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default If Formula

One way:

=IF(COUNTIF(A1:F1,F1)=6,1.5,1)*F1

In article ,
SJT wrote:

I would like to create a formula that looks at the previous six cells in a
row and if they are all the same value it increased the value in the seventh
cell by a certain percentage. For example, if the cells in A1:F1 all had the
value of 100 it would put a value of 150 (100 plus 50% of 100) in G1. If the
values in A1:F1 were not the same it would simply put the value in F1. Thank
you in advance for your cooperation.

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



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