Solved

Formula required

Posted on 2013-12-12
6
317 Views
Last Modified: 2013-12-12
Hi,

I've these columns, and I want a formula in col C, D, E, and F which should have the amount shown as per days in col B. For example, for first entry, 2500 should appear in col C, because in col B, days against 2500 are 20. And fifth entry where amount is 1450, the amount should appear in col E. So i want formula in these columns so that the amount is accordingly displayed, and other cells should remain blank.

A              B              C             D              E               F
Amount      Days       0-30             31-60      61-90      91-120
2500      20                        
3000      35                        
3500      15                        
1580      45                        
1450      68                        
2658      70                        
6540      90                        
2540      120                        
3620      110                        
4890      55                        

Thanks,

- San.
0
Comment
Question by:sanjay-gandhi
6 Comments
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 50 total points
ID: 39714622
You can use AND, e.g. in C2 use this formula

=IF(AND($B2>0,$B2<=30),$B2,"")

copy that across to F2 and change the amounts in each column, e.g. D2 becomes

=IF(AND($B2>30,$B2<=60),$B2,"")

E2

=IF(AND($B2>60,$B2<=90),$B2,"")

etc.

then copy down columns as far as required

regards, barry
0
 
LVL 28

Expert Comment

by:omgang
ID: 39714625
Column C formula
=IF(AND(B25>=0,B25<=30),A25,)

Column D formula
=IF(AND(B25>=31,B25<=60),B24,)

Column E formula
=IF(AND(B25>=61,B25<=90),B24,)

Column F formula
=IF(AND(B25>=91,B25<=120),B24,)

OM Gang
0
 
LVL 28

Accepted Solution

by:
omgang earned 300 total points
ID: 39714629
Sorry, should have been


Column C formula
=IF(AND(B25>=0,B25<=30),A25,)

Column D formula
=IF(AND(B25>=31,B25<=60),A25,)

Column E formula
=IF(AND(B25>=61,B25<=90),A25,)

Column F formula
=IF(AND(B25>=91,B25<=120),A25,)

OM Gang
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 18

Assisted Solution

by:Steven Harris
Steven Harris earned 50 total points
ID: 39714633
You should use an IF statement in each column.

See the attached workbook.
Q-28316783.xlsx
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39714679
Or use this formula in C2 and copy it down and across

=IF(AND($B2>=VALUE(LEFT(C$1,FIND("-",C$1)-1)),$B2<=VALUE(RIGHT(C$1,LEN(C$1)-FIND("-",C$1)))),$A2,"")
0
 

Author Closing Comment

by:sanjay-gandhi
ID: 39714723
Incidentally first best answer by OmGang.

Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now