Excel: IF - Then Function, (Potentially Incorporating V/Hlookup

Soulknight12

New Member
Joined
Feb 16, 2021
Messages
3
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi All,

I'm seeking assistance in building a cell formula that would search a table for any values within that row. If there is a value within that row, it will give me the Title of that row for example:

Ideally what I need is some sort of function that would tell me which bond each customer has, without having to check manually.

Thanks alot in advance for those that can help!
If you can post what formula to use it would be appreciated.
 

Attachments

  • Test Sheet Image.JPG
    Test Sheet Image.JPG
    58.6 KB · Views: 10

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi,

Assuming no customer holds 2 or more Bonds (as in your sample), try something like this:

Book3.xlsx
ABCDEFGHIJKL
3Bonds held
4BOND 1BOND 2BOND 3BOND 4BOND 5BOND 6BOND 7BOND 8BOND 9BOND 10
5JaimeBOND 520000
6JoshuaBOND 21000
7FreedomBOND 630000
8SimonBOND 74000
9PatrickBOND 41231
Sheet769
Cell Formulas
RangeFormula
B5:B9B5=LOOKUP(9.99999999999999E+307,C5:L5,C$4:L$4)
 
Upvote 0
With Excel 365 you could use the FILTER function.
If the customer had more than one bond then something like the formula in cell B8 below,

Book1
ABCDEFGHIJKL
1Bonds held
2BOND 1BOND 2BOND 3BOND 4BOND 5BOND 6BOND 7BOND 8BOND 9BOND 10
3JaimeBOND 520000
4JoshuaBOND 21000
5FreedomBOND 630000
6SimonBOND 74000
7PatrickBOND 41231
8BillBOND 2, BOND 94000600
Sheet2
Cell Formulas
RangeFormula
B3:B7B3=FILTER($C$2:$L$2,$C3:$L3<>"","No Bond")
B8B8=TEXTJOIN(", ",1,FILTER($C$2:$L$2,$C8:$L8<>"","No Bond"))
 
Upvote 0
Hi,

Assuming no customer holds 2 or more Bonds (as in your sample), try something like this:

Book3.xlsx
ABCDEFGHIJKL
3Bonds held
4BOND 1BOND 2BOND 3BOND 4BOND 5BOND 6BOND 7BOND 8BOND 9BOND 10
5JaimeBOND 520000
6JoshuaBOND 21000
7FreedomBOND 630000
8SimonBOND 74000
9PatrickBOND 41231
Sheet769
Cell Formulas
RangeFormula
B5:B9B5=LOOKUP(9.99999999999999E+307,C5:L5,C$4:L$4)

Hi There,

I'm having some trouble using this look up function, this is a similar variant to what I'm trying to do on my excel sheet

Test Sheet.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAY
3MaturedAccount HolderBond Holdings (Stock Code)Prices used Bahamas 2024 Bahamas 2028 Bahamas 2029 Bermuda 24 FCB 2023 GORTT 24 GORTT 3.4 2021 GORTT 2022 GORTT 3.3 2023 GORTT 2023 GORTT 2025 GORTT 2026 Gortt 2032 Gortt 2033 Gortt 2036 HODECO 2023 HODECO 2024 HMB 2024 HMB 2025 MASSY 2024 MTS NIDCO 2028 NIDCO 2031 NIPDEC 2025 NIPDEC 2028 NIPDEC 5.02% 2029 NIPDEC 2029 NIPDEC 2030 NCB 2021 NIF 2023 NIF 2030 NIF 2038 SURINM 26 TBILL 16 Jun 2021 TBILL 31 Dec 2020 TTMORF 2023 TTMORF 2024 TTMF 4.75% 2025 TTMORF 2026 TTMF 4.94 2026 TSTT 8.3% 2029 TRITOB 6.3 2023 TRITOB 2024 TRITOB 2026 TRITOB 2027 TRNGEN 2027 UNICOM 2024
4
5NoKenny Mohammed and Patricia Mohammed#N/A$112.03189000
6
7
Sheet3
Cell Formulas
RangeFormula
C5C5=LOOKUP(9.99999999999999+307,E5:AY5,E4:AY4)
 
Upvote 0
You have a couple of mistakes in the formula in C5, it should be:

=LOOKUP(9.99999999999999E+307,E5:AY5,E3:AY3)

Book3.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAY
3MaturedAccount HolderBond Holdings (Stock Code)Prices used Bahamas 2024 Bahamas 2028 Bahamas 2029 Bermuda 24 FCB 2023 GORTT 24 GORTT 3.4 2021 GORTT 2022 GORTT 3.3 2023 GORTT 2023 GORTT 2025 GORTT 2026 Gortt 2032 Gortt 2033 Gortt 2036 HODECO 2023 HODECO 2024 HMB 2024 HMB 2025 MASSY 2024 MTS NIDCO 2028 NIDCO 2031 NIPDEC 2025 NIPDEC 2028 NIPDEC 5.02% 2029 NIPDEC 2029 NIPDEC 2030 NCB 2021 NIF 2023 NIF 2030 NIF 2038 SURINM 26 TBILL 16 Jun 2021 TBILL 31 Dec 2020 TTMORF 2023 TTMORF 2024 TTMF 4.75% 2025 TTMORF 2026 TTMF 4.94 2026 TSTT 8.3% 2029 TRITOB 6.3 2023 TRITOB 2024 TRITOB 2026 TRITOB 2027 TRNGEN 2027 UNICOM 2024
4
5NoKenny Mohammed and Patricia Mohammed GORTT 2025 112.03189000
Sheet769
Cell Formulas
RangeFormula
C5C5=LOOKUP(9.99999999999999E+307,E5:AY5,E3:AY3)
 
Upvote 0
Hi, Ended up figuring that out today, Thank you so much for the assistance mate, Really appreciate it.
 
Upvote 0
You're welcome, glad you got it working.
 
Upvote 0

Forum statistics

Threads
1,214,571
Messages
6,120,302
Members
448,954
Latest member
EmmeEnne1979

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