IF function in Excel

Gajendran Yadhav

Board Regular
Joined
Sep 8, 2023
Messages
51
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
Dear experts,

I'm working on a file where I have any number of data and in one column (Column N) pertaining to Money Components.
This value is based on the data in the Column P.

I want the users to enter exact value.

The values in Column P are - CD, Civil, Criminal, FIR, WC, TPC (listed function)

I want values in column N to be dependent on column P.

If Column P is FIR or Criminal, Column N should be ZERO (0).
If column P is not FIR or Criminal, then any value greater than 0.

First four rows are title. first value is entered in row 5.

I used the following IF Function, however it failed.

=IF(OR(P5="FIR", P5="CRIMINAL"), 0, "*")

Please Help with Data Validation Formula.

1699079362055.png



And is there any possibility that Excel automatically calculates the value that I enter to lakhs (Indian System) or Millions.
Eg: if the value is 567891 (Five Lakh Sixty Seven Thousand Eight Hundred Ninty One), then it should return 5.67.

I have formatted the column N as "Currency" with Indian Rupee Symbol and with 2 decimal places.

Any help will be appreciated.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
1235.xlsm
NOPQRST
2List
3Fir-
4MonetryByclassCriminal-
5100.00BYCivilCD50
60.00BYCriminalCivil100
750.00BYCDWU200
80.00BYFirTPC300
9300.00BYTPC
100.00Criminal
1150.00cd
12300.00TPC
13 
14
15
Sheet17
Cell Formulas
RangeFormula
N5:N13N5=IFNA(INDEX($T$3:$T$8,MATCH(P5,$S$3:$S$8,0)),"")
Cells with Data Validation
CellAllowCriteria
P5:P13List=$S$3:$S$8
 
Upvote 0
1235.xlsm
NOPQRST
2List
3Fir-
4MonetryByclassCriminal-
5100.00BYCivilCD50
60.00BYCriminalCivil100
750.00BYCDWU200
80.00BYFirTPC300
9300.00BYTPC
100.00Criminal
1150.00cd
12300.00TPC
13 
14
15
Sheet17
Cell Formulas
RangeFormula
N5:N13N5=IFNA(INDEX($T$3:$T$8,MATCH(P5,$S$3:$S$8,0)),"")
Cells with Data Validation
CellAllowCriteria
P5:P13List=$S$3:$S$8
Hi...Thanks for your help.

I could not understand your view... please give more clear information to understand better.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,179
Members
452,615
Latest member
bogeys2birdies

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