Searching multiple columns for data

MikeJ100

New Member
Joined
Jan 30, 2017
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Hi, in table 1 shows how the data is presented to me, whilst table 2 shows how I want to have the data. How can I do this? I don't know any VBA.

Thanks in advance for your help.

Table 1
Coln AColn BColn CColn DColn EColn FColn Z
Mike100
John50
Bill70

<tbody>
</tbody>


Table 2
Coln AColn B
Mike100
John50
Bill70

<tbody>
</tbody>
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You could just highlight all blank cells and delete them (using "shift cells left"). This is assuming you don't want to track the original column the value was in.
 
Upvote 0
try


Excel 2012
ABCDEFG
1Table 1
2Coln AColn BColn CColn DColn EColn FColn Z
3Mike100
4John50
5Bill70
6
7
8Table 2
9Coln AColn B
10Mike100
11John50
12Bill70
Sheet1
Cell Formulas
RangeFormula
B10=LOOKUP(90000000000,B3:G3,B3:G3)
 
Upvote 0
Thank you for your help, it's very much appreciated.

What does the 90000000000 do, as when I try to use it on text, it comes up as #N/A?
 
Upvote 0
it can be any large number larger than any in your data range so that the lookup() function report the next number smaller than that.

if you've a mixed of number and text like this, try


Excel 2012
ABCDEFG
1Table 1
2Coln AColn BColn CColn DColn EColn FColn Z
3Mike100
4JohnCheck
5Bill70
6
7
8Table 2
9Coln AColn B
10Mike100
11JohnCheck
12Bill70
Sheet1
Cell Formulas
RangeFormula
B10=IFERROR(INDEX(B3:G3,MATCH(9.99999999999999E+307,B3:G3)),INDEX(B3:G3,MATCH(REPT("z",255),B3:G3)))
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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