How to extract the name of 2nd bidder

Zaigham

Board Regular
Joined
Dec 22, 2010
Messages
159
Office Version
  1. 2021
Platform
  1. Windows
  2. Mobile
Hi All,
In the following example I have extracted the name of lowest bidder with the help of =INDEX() =MIN() and =MATCH() functions. It also works with =INDEX() and =SMALL() functions. In some cases same rate is quoted by more than one bidder. In this situation =SMALL() returns correct rate i.e., 2nd small value but I am unable to extract the name of 2nd bidder who had quoted the same rate.
How can I extract the name of 2nd or may be 3rd bidder who quoted same rates.
Excel Workbook
ABCDEF
6Name of Firm =>LFT TradersRecho EnterprisesTrue Fit ShoesMadni BuildersGems & Stones Ltd.
7BOQ* * * * * * 200,000* * * * * * 200,000* * * * * * 200,000* * * * * * 200,000* * * * * * 200,000
8Premium Quoted* * 2.00 % Above* 1.00 % Above* 1.00 % Above* * 2.00 % Above* * 3.00 % Above
9******
10Amount of Premium4,0002,0002,0004,0006,000
11Tender Cost204,000202,000202,000204,000206,000
12******
13*** * *1.00 % AboveMIN(B8:AE8)**
14**2MATCH(C23,B8:AE8,0)**
15**Recho EnterprisesINDEX($B$6:$AE$6,C24)**
16******
17**1SMALL(B8:AE8,1)**
18**2MATCH(C23,B8:AE8,0)**
19**Recho EnterprisesINDEX($B$6:$AE$6,C18)**
20******
21**1SMALL(B8:AE8,2)**
22**2MATCH(C21,B8:AE8,0)**
23**Recho EnterprisesINDEX($B$6:$AE$6,C22)**
Work (1)




Regards
Zaigham
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi Bradium
Thanks for your response. I will try to use your technique for my purpose.
Regards
Zaigham
 
Upvote 0
Hi
I have downloaded the file of brother Bradium. It is good but do not solve my problem. Sample data is again copied here. All formulas of the table have been converted into values just to avoid the lengthy explanations by HTML Jeanie. I want the sentence appearing at B14 to be appeared at B13 if the number of lowest bidders is greater than one.

Excel Workbook
ABCDEF
6Name of Firm =>LFT TradersRecho EnterprisesTrue Fit ShoesMadni BuildersGems & Stones Ltd.
7BOQ* * * * * * 200,000* * * * * * 200,000* * * * * * 200,000* * * * * * 200,000* * * * * * 200,000
8Premium Quoted* * 2.00 % Above* 1.00 % Above* 1.00 % Above* * 2.00 % Above* * 3.00 % Above
9******
10Amount of Premium4,0002,0002,0004,0006,000
11Tender Cost204,000202,000202,000204,000206,000
12******
13NOTE:M/s. Recho Enterprises is the LOWEST bidder by quoting his rates @ 1.00%****
14Required Text:M/s Recho Enterprises and True Fit Shoes both are LOWEST bidder by quoting their rates @ 1.00%****
Work (1)




I am sure that many of the forums members have the solution.

Awaiting for expert's advise.
Zaigham
 
Upvote 0
Hi Zaigham

I have adjusted the example for you and included some vba as another solution.

Regards

Brad

http://www.4shared.com/document/yQTVXvzu/Find_rank_update.html
Code:
The code in the example is

Sub myrank()

mymin = Application.Min(Range("b4:g4"))

For Each c In Range("b4:g4")
If c = mymin Then
i = i + 1
End If

Next

Select Case i

Case 1

For Each c In Range("b4:g4")
If c = mymin Then
MyName = c.Offset(-2, 0)
Mybuild = Mybuild & " " & MyName
End If

Next c

Mybuild = "Ms " & Mybuild & " is the LOWEST bidders by quoting his rate @ " & Application.Text(mymin, "0.00%")

MsgBox (Mybuild)


Case 2 To 10

For Each c In Range("b4:g4")
If c = mymin Then
MyName = c.Offset(-2, 0)
Mybuild = Mybuild & " " & MyName & Chr(10)
End If

Next c

Mybuild = "Ms " & Chr(10) & Mybuild & " are the LOWEST bidders by quoting their rates @ " & Application.Text(mymin, "0.00%")

MsgBox (Mybuild)
End Select
End Sub
 
Upvote 0
Brother Brad

Just thanks is not enough. So kind of you. I have found this forum very helpful where many other kind persons like you always provide help. Now I can modify it as per my requirements.
Once again a lot of Thanks.:bow:
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

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