Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 13
Default If statement help

Hi,
I believe this would be categorized as a "nested if" question.

I have to calculate different pricing based on weight categories.
So- in English, it would be:
If cell a1 is greater than 1000 but less than 1999 then multiply a1 times
c4, if A1 is greater is greater than 1999 but less than 2999 then multiply
A1 times C5, etc

Can someone provide an example of that syntax??

Thanks so much.



  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 169
Default If statement help

It sounds like you need a VLOOKUP table, as there is also 0-999, etc.

You can structure the table like this

Col A Col B
row 3 0 C4
row 4 1000 C5
row 5 2000 C6
row 6 3000 C7
row 7 4000 C8

The formula would look like:

VLOOKUP(A1, A3:B7,2)*A1
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Edward" wrote:

Hi,
I believe this would be categorized as a "nested if" question.

I have to calculate different pricing based on weight categories.
So- in English, it would be:
If cell a1 is greater than 1000 but less than 1999 then multiply a1 times
c4, if A1 is greater is greater than 1999 but less than 2999 then multiply
A1 times C5, etc

Can someone provide an example of that syntax??

Thanks so much.




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 32
Default If statement help

If you would like to use a nested If (you cannot nest more than 7 times) you
can try something like this:

If C1 through C4 contains the multipliers and column A contains the numbers
to be checked (if they are less than whatever...), put this formula in B1 or
D1, etc. Then drag down the Fill Handle as far as you like. The ISBLANK
portion prevents 0s from being in the corresponding cells in Column B or D,
etc. if A has no data. Put the entire formula on one line with no spaces.

=IF(ISBLANK(A1),"",IF(A1<1000,A1*C$1,IF(A1<2000,A1 *C$2,IF(A1<3000,A1*C$3,A1*C$4))))

"Edward" wrote:

Hi,
I believe this would be categorized as a "nested if" question.

I have to calculate different pricing based on weight categories.
So- in English, it would be:
If cell a1 is greater than 1000 but less than 1999 then multiply a1 times
c4, if A1 is greater is greater than 1999 but less than 2999 then multiply
A1 times C5, etc

Can someone provide an example of that syntax??

Thanks so much.




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
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


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