Pull only fields with data

trock12

New Member
Joined
Dec 17, 2014
Messages
29
So here is my situation and I'm not even sure how to properly word it - but I'll make an attempt.

I have a table with say 26 columns(fields). All are Currency except one field - the Identifier, which has data for all lets say 1000 records. All other 25 fields may/may not contain data.

I want to have users be able to input the Identifier into a form query as the parameter, so it returns only those correspondence fields that are either Above $0.00 or blank.

Example: User inputs "ABCD" as parameter, it returns column 2,6,7,21,22 as those are the only ones with values.
User inputs "HYGY" as parameter, it returns column 5,9,14,15,20 as those are the only ones with values.

Can this be done?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Can this be done?
It could be done easily if the table was "normalized" (properly designed).

Instead of having 26 different currency fields, you probably should only have one, with a currency identifier also.

So instead of having a set-up like this:
Code:
Identifier    CurField1    CurField2   CurField3 ...
ABC               10             20          30
XYZ                0             15           0
...
It should look like this:
Code:
Identifier    CurIdentifier    CurValue   
ABC               1               10          
ABC               2               20
ABC               3               30
XYZ               1                0
XYZ               2               15
XYZ               3                0
...
Then querying the fields for values greater than zero becomes quite easy, as you only have to query one field instead of 26.
 
Upvote 0

Forum statistics

Threads
1,221,889
Messages
6,162,627
Members
451,778
Latest member
ragananthony7911

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