IF statement based on multiple conditions

yorkam

New Member
Joined
Jun 12, 2014
Messages
9
Can anyone assist?
I am trying to combine multiple conditions in a formula, it needs to be a formula and not in access.
I have a spreadsheet which simplistically contains three columns of data.
Col A - original date
Col B - payment date - will contain blanks until paid
Col C - delta between original and payment date, this is dynamic, formula in this cell is as follows. =if"B1="",(today()-A1),(B1-A1))

In column4 I want to put a formula that identifies for a range of values which bucket the data falls into based on formula in col 3, which is currently (Col1-col2)..

Formula I am using is
=if(C1<31,"Current",if(C1>=31<=60,"30",if(C1>=61<=90,"60",if(C1>91<=120,"90"if(c1>121<=150,"120","120+"))))
I can get the formula to work for first condition <31 but not for the conditions in between, result defaults to 120+

Anybody any ideas or tried this before of if there is a better formula to use?

Regards
A
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try,

=LOOKUP(SUMPRODUCT(--(C1>={0,31,61,91,121,151,152})),{1,2,3,4,5,6},{"Current","30","60","90","120","120+"})
 
Upvote 0
Ooops, wrong formula. I'll post again in a minute.
 
Upvote 0
Welcome to the MrExcel board!

What about either of these simpler formulas?

Excel Workbook
ABCDE
1Original DatePayment DateDeltaBucketBucket
21/01/1415/01/1414CurrentCurrent
31/01/1427/03/14856060
41/01/141/03/14593030
51/01/142/03/14603030
61/01/14162120+120+
71/01/1428/05/14147120120
81/01/143/04/14929090
Bucket
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top