Need Help with IF Commanda

mrafiq44

New Member
Joined
Oct 14, 2015
Messages
28
i have a 100 transactions - 50 with a debit and 50 with a credit amount in 2 separate columns, i want to identify where each of the amounts land up in the following categories -

[TABLE="width: 142"]
<tbody>[TR]
[TD]$0 - $2,500[/TD]
[/TR]
[TR]
[TD]$2,500 - $10,000[/TD]
[/TR]
[TR]
[TD]$10,000 - $50,000[/TD]
[/TR]
[TR]
[TD]$50,000 - $100,000[/TD]
[/TR]
[TR]
[TD]$100,000 - $250,000[/TD]
[/TR]
[TR]
[TD]$250,000 - $500,000[/TD]
[/TR]
[TR]
[TD]$500,000 - $1,000,000[/TD]
[/TR]
[TR]
[TD]>$1,000,000
Can someone please give me a code like "A' if it falls in the first category, then B - so i can do a pivot table to find number and mount of transactions for each amount.​
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Something like this should work (for an entry in cell A1):
Code:
=LOOKUP(A1,{0,2500,10000,50000,100000,250000,50000,1000000,999999999},{"A","B","C","D","E","F","G","H","I"})
 
Upvote 0
Hi,

Also using LOOKUP, with a Table, you can change the parameters/results in the Table whenever needed:


Book1
ABCDEFG
150001D02500A
2250110000B
31000150000C
450001100000D
5100001250000E
6250001500000F
75000011000000G
81000001H
Sheet71
Cell Formulas
RangeFormula
C1=LOOKUP(A1,E1:E8,G1:G8)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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