HLOOKUP in Access 2013

AndyDevine1

Board Regular
Joined
Jun 1, 2006
Messages
172
Hi there

To simplify, I have three fields in my table:

Column A "Item" contains
A2 - Item 1
A3 - Item 2


Column B contains the heading "Item 1" and then values in B2 (eg 100) and B3 (eg 50)
Column C contains the heading "Item 2" and then values in C2 (eg 11) and C3 (eg 12)

I want to report on the totals for each column (B, C etc)

So I want Item 1 total = 100 + 150 = 150
And item 2 total = 11 + 12 = 25

Can I do this via a horizontal look up or similar?

Thanks for reading

Andy
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You can use the total row on the table or create a report with totals. An HLOOKUP equivalent might give you the nth record in a field, but not an aggregate value. Where do you want them to appear?
 
Upvote 0
You can use the total row on the table or create a report with totals. An HLOOKUP equivalent might give you the nth record in a field, but not an aggregate value. Where do you want them to appear?


Hi thanks for your reply. A new acess table. How do I get the following

'Cell A2' to be 'item 1'
'Cell B2' to be '150'
'Cell A3' to be 'item 2'
'Cell B3' to be '15'

Thanks
 
Upvote 0
https://support.office.com/en-sg/ar...e54-8994-f6a0417b80d3?ui=en-US&rs=en-SG&ad=SG

The totals row is available in your version but none earlier than 2007. I have 2003 so I can't test it, but let me know your results.



Thanks again for your reply

In that example in the first column and rows there is "item 1", "item 2" etc....

In my case, I have the same - "item 1", "item 2" , "Item 3" , item, item 5 etc, etc....

In column B I have numbers for "item 1" and in column C I have item 2, D item 3, E item 4 etc, etc

So I want to know to be able to say in Column A what the item number is...eg item 1 and what the total for item 1 is in column B

Item 2 in column A and total for item 2 in column B

Item 3 in column A and total for item 3 in column B

etc etc

Can you help with that?

Many thanks
 
Upvote 0
Can you type what you've described above in a table-like format? I'm not sure if you want grand totals, subtotals, cross totals, or something else.
 
Upvote 0
In A1 I have my heading "Item"
In A2 - "Item 1"
In A3 - "Item 3"
In A4 - "Item 4"

And so on....for 20 items

In B1 I have heading "Item 1", C1 "Item 2", D1 "Item 3" and so on....imagine 20 columns each representing an Item - item 1 through to item 20...

In Cells C2 right the way down to end of the list and to the right I have numbers


I want item number in column A and the total for the corresponding item in column B

Can you help?
 
Upvote 0
Like this?:


Excel 2010
ABCDEFGHIJKLMNOPQRSTU
1ItemItem 1Item 2Item 3Item 4Item 5Item 6Item 7Item 8Item 9Item 10Item 11Item 12Item 13Item 14Item 15Item 16Item 17Item 18Item 19Item 20
2Item 14247741384197982317997355352435497336
3Item 2261141789984273424552695335681526824652
4Item 3525410775211941123562866339199387226
5Item 433264284617917546024432520873242438675
6Item 548689673637434225885849661302317812820
7Item 666892749573562884143264691669027619962
8Item 79768461699531004617279869286426664598127
9Item 8816679393752519966494936562437974817684
10Item 92663965915779491211943917894237129150
11Item 10532440907271768472420707290755234510
12Item 114171596527831131635230543446823995668115
13Item 122260534279945386163570492917265743934
14Item 13100838526224452130494031621317840864451
15Item 1460107916537695375276922862116669862787
16Item 15824325478696653801510060269972241827199
17Item 1621237047659516166346413591643552489619
18Item 1756373028675055693559791613895810830
19Item 18238734758654429353070459134106661941964
20Item 19535270281134329831563533552156054153735
21Item 2097547622545514394909611996411104963776
22
23Item 11004
24Item 2894
25Item 31042
26Item 4957
27Item 51167
28Item 61020
29Item 7872
30Item 81012
31Item 91092
32Item 10824
33Item 111161
34Item 12822
35Item 131064
36Item 14875
37Item 15916
38Item 16750
39Item 17886
40Item 181061
41Item 19910
42Item 20892
Sheet13
 
Upvote 0
Like this?:


Excel 2010
ABCDEFGHIJKLMNOPQRSTU
1ItemItem 1Item 2Item 3Item 4Item 5Item 6Item 7Item 8Item 9Item 10Item 11Item 12Item 13Item 14Item 15Item 16Item 17Item 18Item 19Item 20
2Item 14247741384197982317997355352435497336
3Item 2261141789984273424552695335681526824652
4Item 3525410775211941123562866339199387226
5Item 433264284617917546024432520873242438675
6Item 548689673637434225885849661302317812820
7Item 666892749573562884143264691669027619962
8Item 79768461699531004617279869286426664598127
9Item 8816679393752519966494936562437974817684
10Item 92663965915779491211943917894237129150
11Item 10532440907271768472420707290755234510
12Item 114171596527831131635230543446823995668115
13Item 122260534279945386163570492917265743934
14Item 13100838526224452130494031621317840864451
15Item 1460107916537695375276922862116669862787
16Item 15824325478696653801510060269972241827199
17Item 1621237047659516166346413591643552489619
18Item 1756373028675055693559791613895810830
19Item 18238734758654429353070459134106661941964
20Item 19535270281134329831563533552156054153735
21Item 2097547622545514394909611996411104963776
22
23Item 11004
24Item 2894
25Item 31042
26Item 4957
27Item 51167
28Item 61020
29Item 7872
30Item 81012
31Item 91092
32Item 10824
33Item 111161
34Item 12822
35Item 131064
36Item 14875
37Item 15916
38Item 16750
39Item 17886
40Item 181061
41Item 19910
42Item 20892
Sheet13





Yes thanks , do you know how to do that? Cheers
 
Upvote 0

Forum statistics

Threads
1,221,893
Messages
6,162,662
Members
451,781
Latest member
DylantheD

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