Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Xenos
 
Posts: n/a
Default Need a help with the IF/ IFCOUNT function


I am designing a quote sheet where different markups will be placed
depending on different value.

As an example:

If a product is between 0 and 19.99 I want to mark it up 100%
If a product is between 20.00 and 49.99 I want to mark it up 60%
If a product is between 50.00 and 99.99 I want to mark it up 40%
If a product is over 100 I want to mark it up 35%

My actual price box will be lets say A1
My between price boxes will be B1,B2… B3,B4…B5,B6…B7
My Markups will be in C1,C2,C3,and C4.

And my result will be in D1.

Ok this is all hypothetical but you get the jest.

Can I write a singe code in box D1 to do the calculations or do I need
to break the code up with 4 different expressions?

Can someone just get me started with the code like =IF(A1B1 but <B2
use C1) ….

I can do all the basic stuff I just don’t know where to start with this
one.


Thanks

Todd


--
Xenos
------------------------------------------------------------------------
Xenos's Profile: http://www.excelforum.com/member.php...o&userid=26526
View this thread: http://www.excelforum.com/showthread...hreadid=397941

  #2   Report Post  
ronthedog
 
Posts: n/a
Default


Xenos Wrote:
I am designing a quote sheet where different markups will be placed
depending on different value.

As an example:

If a product is between 0 and 19.99 I want to mark it up 100%
If a product is between 20.00 and 49.99 I want to mark it up 60%
If a product is between 50.00 and 99.99 I want to mark it up 40%
If a product is over 100 I want to mark it up 35%

My actual price box will be lets say A1
My between price boxes will be B1,B2… B3,B4…B5,B6…B7
My Markups will be in C1,C2,C3,and C4.

And my result will be in D1.

Ok this is all hypothetical but you get the jest.

Can I write a singe code in box D1 to do the calculations or do I need
to break the code up with 4 different expressions?

Can someone just get me started with the code like =IF(A1B1 but <B2
use C1) ….

I can do all the basic stuff I just don’t know where to start with this
one.


Thanks

Todd


You can use AND as follows to combine multiple conditions

=IF(AND(A120, A1<30),A1*B1, A1*C1)

or you can nest IF statements like this

=IF(A110, IF(A120,A1*B2,A1*A2),A1)

Use the evaluate formula command if you need to step through a long-ish
IF function (as these can end up)


--
ronthedog
------------------------------------------------------------------------
ronthedog's Profile: http://www.excelforum.com/member.php...o&userid=26504
View this thread: http://www.excelforum.com/showthread...hreadid=397941

  #3   Report Post  
agarwaldvk
 
Posts: n/a
Default


Dear Todd

This is one of solutions :-

In cells A1, A2, A3 and A4 enter the values of price barriers viz 100,
99.99, 49.99 and 19.99 (these values must necessarily be in the
descending order)

In cells B1, B2, B3 and B4 enter the corresponding values for the
markups viz 35, 40, 60 and 100.

Now if you have the product names in cells A5 through to A500, their
actual prices in cells B5 through to B500, then you could enter the
following formula in cell C5 and drag it all the way down to cell C500
:-

Index($A1:$B4, Match(B5,$A1:$A4,-1),2)

Hope this helps!


Best regards


Deepak Agarwal


--
agarwaldvk
------------------------------------------------------------------------
agarwaldvk's Profile: http://www.excelforum.com/member.php...o&userid=11345
View this thread: http://www.excelforum.com/showthread...hreadid=397941

  #4   Report Post  
Xenos
 
Posts: n/a
Default


Thanks Guys for the tips, I got it figured out ( with your help of
course). Now I’m hoping you can help with another issue.

This is my formula , and as you can see it’s quite long.

=IF(G29Markups!C11,G29*B29*Markups!F11+G29*B29*Ma rkups!F12,IF(G29Markups!C10,G29*B29*Markups!F11,I F(G29Markups!C9,G29*B29*Markups!F10,IF(G29Markup s!C8,G29*B29*Markups!F9,IF(G29Markups!C7,G29*B29* Markups!F8,G29*B29*Markups!F7)))))

Now I want to copy this into many cells on my quote sheet.

B29 is my quantity
G29 is the price
K29 is my formula

What my goal is, copy the formula to cells K30,K31+ and so on. Each
time my targets will also change to B30+ and G30+. If I copy and past
the formula the targets remain at B29 and G29. is there an easy way to
copy this formula and also change the targets to the same row as the
formula?


--
Xenos
------------------------------------------------------------------------
Xenos's Profile: http://www.excelforum.com/member.php...o&userid=26526
View this thread: http://www.excelforum.com/showthread...hreadid=397941

  #5   Report Post  
Xenos
 
Posts: n/a
Default


Deepak Agarwal, your one step ahead of me...Ofcourse :) I will think
about what you mention in your post and play with it.


--
Xenos
------------------------------------------------------------------------
Xenos's Profile: http://www.excelforum.com/member.php...o&userid=26526
View this thread: http://www.excelforum.com/showthread...hreadid=397941



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
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


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