Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Multiple IF Formula Question

I'm looking to do the following:

If C5=1, -C21*12.50%, IF C5=2, -C21*15.00%, IF C2=3 and so on all the way
until IF C5=10.

Thanks.

~~Rob
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Multiple IF Formula Question

The easy way is to set up a lookup table and use VLOOKUP function


"Rob" wrote:

I'm looking to do the following:

If C5=1, -C21*12.50%, IF C5=2, -C21*15.00%, IF C2=3 and so on all the way
until IF C5=10.

Thanks.

~~Rob

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Multiple IF Formula Question

if the percentage increases by 2.5% for each integer increment in C5, then

=-c21*(.1+c5*.025)

this formula doesn't protect against C5 being something other than an
integer between 1 and 10


"Rob" wrote:

I'm looking to do the following:

If C5=1, -C21*12.50%, IF C5=2, -C21*15.00%, IF C2=3 and so on all the way
until IF C5=10.

Thanks.

~~Rob

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Multiple IF Formula Question

It doesn't increase by 2.5%
--
~~Rob


"Duke Carey" wrote:

if the percentage increases by 2.5% for each integer increment in C5, then

=-c21*(.1+c5*.025)

this formula doesn't protect against C5 being something other than an
integer between 1 and 10


"Rob" wrote:

I'm looking to do the following:

If C5=1, -C21*12.50%, IF C5=2, -C21*15.00%, IF C2=3 and so on all the way
until IF C5=10.

Thanks.

~~Rob

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Multiple IF Formula Question

Then you'll need to do what Teethless suggested: create a 2-column table
where the first column contains your integers 1 to 10, and the second column
contains the percentages. You'll then use a formula such as (assuming the
table is in cells A1:B10, and your integer value is in C5)

=-21*VLOOKUP(C5,a1:b10,2,0)



"Rob" wrote:

It doesn't increase by 2.5%
--
~~Rob


"Duke Carey" wrote:

if the percentage increases by 2.5% for each integer increment in C5, then

=-c21*(.1+c5*.025)

this formula doesn't protect against C5 being something other than an
integer between 1 and 10


"Rob" wrote:

I'm looking to do the following:

If C5=1, -C21*12.50%, IF C5=2, -C21*15.00%, IF C2=3 and so on all the way
until IF C5=10.

Thanks.

~~Rob



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Multiple IF Formula Question

It worked thanks.

Just for my knowledge, why do you need 2,0 at the end of the formula?
--
~~Rob


"Duke Carey" wrote:

Then you'll need to do what Teethless suggested: create a 2-column table
where the first column contains your integers 1 to 10, and the second column
contains the percentages. You'll then use a formula such as (assuming the
table is in cells A1:B10, and your integer value is in C5)

=-21*VLOOKUP(C5,a1:b10,2,0)



"Rob" wrote:

It doesn't increase by 2.5%
--
~~Rob


"Duke Carey" wrote:

if the percentage increases by 2.5% for each integer increment in C5, then

=-c21*(.1+c5*.025)

this formula doesn't protect against C5 being something other than an
integer between 1 and 10


"Rob" wrote:

I'm looking to do the following:

If C5=1, -C21*12.50%, IF C5=2, -C21*15.00%, IF C2=3 and so on all the way
until IF C5=10.

Thanks.

~~Rob

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Multiple IF Formula Question

If you look up VLOOKUP in Excel help, it will tell you the syntax of the
function.

Excel help should usually be your first port of call if you're wanting
information on Excel.
--
David Biddulph

"Rob" wrote in message
...
It worked thanks.

Just for my knowledge, why do you need 2,0 at the end of the formula?
--
~~Rob


"Duke Carey" wrote:

Then you'll need to do what Teethless suggested: create a 2-column table
where the first column contains your integers 1 to 10, and the second
column
contains the percentages. You'll then use a formula such as (assuming
the
table is in cells A1:B10, and your integer value is in C5)

=-21*VLOOKUP(C5,a1:b10,2,0)



"Rob" wrote:

It doesn't increase by 2.5%
--
~~Rob


"Duke Carey" wrote:

if the percentage increases by 2.5% for each integer increment in C5,
then

=-c21*(.1+c5*.025)

this formula doesn't protect against C5 being something other than an
integer between 1 and 10


"Rob" wrote:

I'm looking to do the following:

If C5=1, -C21*12.50%, IF C5=2, -C21*15.00%, IF C2=3 and so on all
the way
until IF C5=10.

Thanks.

~~Rob



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
Multiple sheet formula question CP Excel Worksheet Functions 0 November 20th 07 09:46 AM
multiple < and = question TR Young Excel Worksheet Functions 6 November 16th 06 11:28 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Multiple workbooks question Bambi Williams Excel Discussion (Misc queries) 1 October 12th 05 08:01 PM
One formula on multiple workbooks question Josh M Excel Discussion (Misc queries) 1 May 24th 05 03:17 AM


All times are GMT +1. The time now is 01:47 AM.

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"