Excel Find

kmi

New Member
Joined
Jul 11, 2024
Messages
2
Office Version
  1. 365
1.Here in "Table-1" the invoice number of 5 branches is given from which only branch name should be filtered through excel formula.
2.As shown in Table-3, the answer should come through Excel formula in Table-2.
3.If Subtotal appears in Table-1, then the branch name should appear in the line above which the invoice number of the branch. is as shown in Table-3.

Sample Answer Given In Table-3 typed manually .Same Answer Should Came In Table-2 through Excel Formula
 

Attachments

  • formula-11.PNG
    formula-11.PNG
    36.7 KB · Views: 8

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Cannot manipulate data in a picture. Please reload to this forum using XL2BB so that we don't have to reconstruct your data. See the download at the top of your reply.
 
Upvote 0
Could you please test this:

Excel Formula:
=SCAN("",IF(ISNUMBER(FIND("CUSTOMER",A7:A41)),"",RIGHT(TEXTBEFORE(A7:A41,"-"),3)),LAMBDA(a,b,IF(ISNA(b),a,b)))
 
Upvote 0
Smaller version of your sample, but perhaps:

Book2
AB
6INVOICE NUMBERVoucher
7CUSTOMER-1 
8SrVe:2024RWA1-1827RWA
9SiVe:2024BRBA1-2417BRB
10Sub TotalBRB
Sheet1
Cell Formulas
RangeFormula
B7:B10B7=IF(LEFT(A7,8)="CUSTOMER","",IF(A7="Sub Total",B6,MID(A7,10,3)))
 
Upvote 0

Forum statistics

Threads
1,221,531
Messages
6,160,352
Members
451,639
Latest member
Kramb

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