how to enter a value in a specific cell based on column and row headers

Shazzj001

New Member
Joined
Mar 22, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

Help please....

I need to enter a monetary value in a specific cell which is dictated to by the row (week) and column (Number ID).

I assume the best way to do this is using a VBA userform with 3 text boxes plus a few command buttons..
  • ID number : 1 to 236
  • Week date (always a Sunday) : 07/01/2024 through to 29/12/2024 (52 weeks)
  • Monetary value eg: £20.00
How do I get the monetary value to assign cell corresponding to the ID Number (eg 24) and the week (eg 24/3/2024)?

My spreadsheet has ID number's from D3 down to D238 and Weeks from H2 to BG2.
My monetary values can be entered anywhere from H3 to BG238

I have bought a book on VBA programming, but I would appreciate guidance as to how I would go about this task as I don't know where to start.

Thanks for reading and I hope you can understand what I'm trying to do.

Kind Regards
Shazz
 

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.
Hallo Shazz

Why are you making it so complicated? You just need a 2-column-list.
Mappe6
ABC
1IDWeekValue
22424.03.202420
314507.07.202444
43828.01.2024148
Tabelle2
 
Upvote 0
Hi Shift-del,

Thanks for responding.

I had thought of doing a 2- column list and entering all data onto that list, but how does this data transfer to the weekly donations spreadsheet?

This is a charity donations spreadsheet and it must show the full year of donations against the appropriate ID number and week.

Currently this is done by clicking into each cell, but there has to be another way of entering this data.

There is an additional problem I face...

The spreadsheet is updated fortnightly when donations are counted. I would need someway of knowing how much was entered on the day it's updated so that the money being lodged corresponds to the amount entered. There are totals at the end of each row and column, but it isn't just a simple case of =Sum () for that week... donations are entered according to the information on the donation envelope which is ID num and week. If a donator gives using 3 envelopes at a time these have to registered in that appropriate week cell which is detailed on envelope not a lump sum on date counted and entered.

Hope this all makes sense.

Thanks
Shazz
 
Upvote 0
This is a charity donations spreadsheet and it must show the full year of donations against the appropriate ID number and week.
That is what the list does.
If a donator gives using 3 envelopes at a time these have to registered in that appropriate week cell which is detailed on envelope not a lump sum on date counted and entered.
Type a row for each envelope. See the color-coded example.

Insert a pivot table to get the sum of each intersection and the sums for each row and each column.
You can group the date field into years, quarters and months if needed. And add subtotals.

Mappe6
ABCDEFGHIJKL
1IDWeekValueSumme von ValueID
22424.03.202420Jahre (Week)Quartale (Week)Tage (Week)2438145Gesamtergebnis
314507.07.2024442024Qrtl128. Jan225225
43828.01.202414824. Mrz2020
53828.01.202474Qrtl1 Ergebnis20225245
63828.01.20243Qrtl307. Jul4444
7Qrtl3 Ergebnis4444
8Gesamtergebnis2022544289
Tabelle2
 
Upvote 0
That is what the list does.

Type a row for each envelope. See the color-coded example.

Insert a pivot table to get the sum of each intersection and the sums for each row and each column.
You can group the date field into years, quarters and months if needed. And add subtotals.

Mappe6
ABCDEFGHIJKL
1IDWeekValueSumme von ValueID
22424.03.202420Jahre (Week)Quartale (Week)Tage (Week)2438145Gesamtergebnis
314507.07.2024442024Qrtl128. Jan225225
43828.01.202414824. Mrz2020
53828.01.202474Qrtl1 Ergebnis20225245
63828.01.20243Qrtl307. Jul4444
7Qrtl3 Ergebnis4444
8Gesamtergebnis2022544289
Tabelle2
Ok will have a look at this and see if it will work with my spreadsheet.

Thanks again for your response.
Sharon
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,208
Members
452,618
Latest member
Tam84

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