If function with Countif formula

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello formula experts

I am trying to get a formula in column E where if column G5 has the name in column C then it should calculate TCS or leave it blank. The number of names in the column G can be null or up to 100 names. I tried using Vlookup with if function but I am not getting it right. In the original data there may be 10,000 rows or more and the TCS Names can be in 1 to 100 rows. I assume a countif with if function will help.
Get TCS to selected Names.xlsx
ABCDEFGHI
1DATEINVOICE NO.NameAmountTCSTCS NAMESTCS Percentage
205-09-20221001Sunday58500.0058.50Sunday0.001
305-09-20221002Monday70850.00Wednesday
405-09-20221003Tuesday73045.00
505-09-20221004Wednesday46568.0046.57
605-09-20221005Thursday12600.00
705-09-20221006Friday14400.00
805-09-20221007Saturday30400.00
906-09-20221008Sunday13750.0013.75
1007-09-20221009Monday61050.00
1108-09-20221010Tuesday7936.50
1209-09-20221011Wednesday13630.0013.63
1310-09-20221012Thursday25725.00
1411-09-20221013Friday35750.00
1512-09-20221014Saturday18500.00
1613-09-20221015Sunday6600.006.60
1714-09-20221016Monday3658.00
1815-09-20221017Tuesday25080.00
1916-09-20221018Wednesday60660.0060.66
2017-09-20221019Thursday21225.00
2118-09-20221020Friday18425.00
2219-09-20221021Saturday12210.00
2320-09-20221022Sunday39600.0039.60
2421-09-20221023Monday15360.00
2522-09-20221024Tuesday4096.00
2623-09-20221025Wednesday34500.0034.50
2724-09-20221026Thursday24420.00
2825-09-20221027Friday17750.00
2926-09-20221028Saturday4199.00
3027-09-20221029Sunday77120.0077.12
3128-09-20221030Monday51370.00
3229-09-20221031Tuesday103490.00
3330-09-20221032Wednesday7717.507.72
3401-10-20221033Thursday40280.00
3502-10-20221034Friday3900.00
3603-10-20221035Saturday8000.00
PurchaseData
Cell Formulas
RangeFormula
E2,E33,E30,E26,E23,E19,E16,E12,E9,E5E2=D2*$I$2
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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