A sort/lookup? If cell1 text equals text from a different cell, enter value in cell to the right of cell 1

OxiXL

New Member
Joined
Apr 15, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm trying to sort my payments which are a looong list of column B text and column C $ numbers. I'd like to create a series of columns where:
- I enter a keyword at top of each column say column f row 2 - $f$2
- for each line in column f the formula says that if the value in column B for that line equals $f$2, then enter the value in column C for that line
- and ditto for columns g and so on
I can do this with manual entry of name into formula, like '=IF(ISNUMBER(SEARCH("soda 1681608208279.png",$b5)),c5, "")' but hoping for a smarter lookup of the column header

Can anyone help me please

1681608208279.png
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Book1
ABCDEFG
1
2DateDetails$Sort Itemsodadonut
3xxxsoda-2.25-2.25 
4yyydonut-1.45 -1.45
5
Sheet1
Cell Formulas
RangeFormula
F3:G4F3=IF($B3=F$2,$C3,"")
 
Upvote 0
Thanks Kevin9999 I realise I need to modify my query a little, as the details provided have a lot of text and I'd like the search term to be some only of the text in the details cell, for as below.

1681612509394.png
 
Upvote 0
Book1
ABCDEFG
1
2DateDetails$Sort Itemsodadonut
3xxxwendys soda(2.25)(2.25) 
4aaadunkin donut(1.45) (1.45)
5five soda(2.30)(2.30) 
6yyymcd donut(1.45) (1.45)
Sheet1
Cell Formulas
RangeFormula
F3:G6F3=IF(ISNUMBER(SEARCH(F$2,$B3)),$C3,"")
 
Upvote 0

Forum statistics

Threads
1,215,351
Messages
6,124,445
Members
449,160
Latest member
nikijon

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