LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Help with a really big IF statement


Dear All,
I am writing a massive IF statement and i have nearly got it to work but
i need help with the last bit.
I have a got a price list for shipping with weight brackets and
different prices, so far i have written the IF so that it looks to see
how many kilos i am shipping and then it looks on the price list and
then calculates the correct shipping cost.
So far this works.. see IF below

=IF(M2<=500,'UK rate 2010'!B$9*M2/1000,IF(AND(M2501,M2<=2000),M2*'UK
rate 2010'!C$9/1000,IF(AND(M22001,M2<=3000),M2*'UK rate
2010'!E$9/1000,IF(AND(M23001,M2<=4000),M2*'UK rate
2010'!F$9/1000,IF(AND(M24001,M2<=5000),M2*'UK rate
2010'!G$9/1000,IF(AND(M25001,M2<=7500),M2*'UK rate
2010'!H$9/1000,IF(AND(M27501,M2<=10000),M2*'UK rate
2010'!I$9/1000,IF(AND(M210001,M2<=12500),M2*'UK rate
2010'!J$9/1000,IF(AND(M212501,M2<=15000),M2*'UK rate
2010'!K$9/1000,IF(M215001,M2*'UK rate 2010'!L$9/1000,))))))))))

But the problem is that there are 8 different shipping zones, so i need
it to say if cell C2 says zone 1 look at the prices in row 9 on the 'UK
rate 2010' sheet if C2 says zone 2 look at row 10 etc etc which i don't
think it can do.

I was wondering if i can copy the above formula to somewhere else in the
sheet (cell C100 for example) and do an IF that says if C2 = zone 1
insert formula in cell C100 If it says zone 2 insert formula in C101 and
i do an IF for each shipping zone. The thing is when i tried this
because the formula was looking at cell M2 it only ever looked at that
cell i couldn't get it to understand that the M is fixed but it needs to
replace the row number to which ever number it has inserted to.

Sorry this is such a rambling question but i feel like i am so close i
just can't quite work out the last bit!!

Please help!!! Thank you Emmaly




--
Emmaly
 
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
IF statement inside a SUMIF statement.... or alternative method Sungibungi Excel Worksheet Functions 3 December 4th 09 06:22 PM
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Excel Worksheet Functions 0 October 7th 09 09:07 PM
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM


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