which formula?

Lizzi

Board Regular
Joined
Sep 23, 2011
Messages
156
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I am using excel 2016 and not sure what formula to use to get my results.

On sheet one starting in column A3 going down I have a list of names, for now it’s like this:

A3 A
A4 B
A5 C
Etc
in column B1:AF1 I have the day of the week
in column B2:AF2 I have 1st Jan all the way thru to the 31st Jan (this will be for each month of the year when its set up

On sheet 2 I have the following

Column: A B C
row 3 A $20 Mon
row 4 B $25 Fri
row 5 C $45 Wed

Basically on sheet 1 in cell C3 i want the result to be $20, so i’m trying to say "if column A says “A” (it will be a person’s name) and it falls on a Mon put $20 in that cell, if "B" (said persons name) is on Friday put $25" etc. trouble is i will have 15 peoples names and various $ amounts, so i suspect the formula will be long?

Can anyone plse help me?, i done this manually last year but hoping for some kind of formula to make it quicker, the amount of people can increase as the weeks go by

As always, thanks for any help you can provide
Lizzi
 

Attachments

  • Test.PNG
    Test.PNG
    27.3 KB · Views: 8

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I am using excel 2016
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about in B3 dragged down & across
Excel Formula:
=SUMIFS(Sheet2!$B:$B,Sheet2!$A:$A,$A3,Sheet2!$C:$C,B$1)
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about in B3 dragged down & across
Excel Formula:
=SUMIFS(Sheet2!$B:$B,Sheet2!$A:$A,$A3,Sheet2!$C:$C,B$1)
many thanks :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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